By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,647 Members | 1,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,647 IT Pros & Developers. It's quick & easy.

How do I disable a link? in <A>

P: n/a
I have a set of links which I want search engines to crawl them, but I want
to disable them from my visitors, so I will ask the link owners to pay me to
let me enable them.

<a disabled href="#">bahbahbah</a>
Does not work, as it is still clickable. It only changes the color to grey.
Jul 23 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a

"nntp" <nn**@aol.com> wrote in message
news:zK****************@news04.bloor.is.net.cable. rogers.com...
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them.


You're a fucking retard.
You'll make more money with a part time job than by doing stupid shit like
this.

-Karl
Jul 23 '05 #2

P: n/a
I found the solution by changing the this.href as used here
http://www.aboutdatarecovery.com/dat...ry-links.shtml
all links look right, but they are not clickable as it will call onclick
fuction to change the href from whatever it is to #.
I have a set of links which I want search engines to crawl them, but I want to disable them from my visitors, so I will ask the link owners to pay me to let me enable them.

<a disabled href="#">bahbahbah</a>
Does not work, as it is still clickable. It only changes the color to grey.

Jul 23 '05 #3

P: n/a
On Wed, 01 Sep 2004 18:50:36 GMT, nntp <nn**@aol.com> wrote:

[fixed top-post]
I have a set of links which I want search engines to crawl them, but I
want to disable them from my visitors, so I will ask the link owners to
pay me to let me enable them.

<a disabled href="#">bahbahbah</a>
Does not work, as it is still clickable. It only changes the color to
grey.

It's also invalid HTML, and likely to work only in IE.
I found the solution by changing the this.href as used here
http://www.aboutdatarecovery.com/dat...ry-links.shtml
all links look right, but they are not clickable as it will call onclick
fuction to change the href from whatever it is to #.


However, a user simply has to disable Javascript to bypass it. It can also
be disabled easily by other means.

Personally, I don't see the point. Is your site so popular that people
will want to *pay* you to link to them? No offence, but I doubt it.

Mike
Please don't top-post.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #4

P: n/a
On Wed, 01 Sep 2004 18:42:39 GMT, nntp <nn**@aol.com> wrote:
I have a set of links which I want search engines to crawl them, but I
want
to disable them from my visitors, so I will ask the link owners to pay
me to
let me enable them.


If the search engines can use them, so can your visitors. Not sure you've
thought this through.

One thing which can be done is make them regular free links until you've
verified the search engines have indexed them, then make them
password-access. When people are searching for content, they'll find your
page, but when they attempt to load it they must pay to see the content.

I don't believe this is likely to be a successful business endeavor,
though. Not much info is ONLY available by paying for it. Simply clicking
another page from the search engine results page is likely to be a cheaper
alternative for your visitor.
Jul 23 '05 #5

P: n/a
nntp wrote:
I found the solution by changing the this.href as used here
http://www.aboutdatarecovery.com/dat...ry-links.shtml
all links look right, but they are not clickable as it will call onclick
fuction to change the href from whatever it is to #.


You've got some silly ideas about your ability to control content once it has
been downloaded to a user agent.

*Before* I click on those "dead" links I simply right-click and pick "Open Link
in New Window" (or in my case "Open Link in New Tab"). I don't even need to
disable JavaScript to get around your "security".

Of course, your next question will be "how do I disable the right mouse
button?". Doesn't matter, even if you could disable the right mouse button
effectively in ever user agent, all the time (which you can't <url:
http://everything2.com/?node=right-click+trap />), I can click and hold with
the left mouse button, then hit the context menu key on my keyboard, then
choose "W" to "Open Link in New Window", "T" to "Open Link in New Tab" or "P"
to get the link properties which I can use to copy/paste the link back into the
browser.

So let's say you somehow manage to disable my context menu key. Still doesn't
matter, I can View > Source to obtain the links.

And let's get incredibly silly and somehow you could disable my ability to
right mouse button and my ability to do View > Source by removing all menus and
toolbars in a new window. It still does not matter, I can hit CTRL+N in
Internet Explorer and get a new window with full chrome pointing to the same
page.

And even if you manage to disable CTRL+N so I can't do that. It _still_ does
not matter, I will just go to a command prompt and execute "wget <yoursite>",
or I could disable JavaScript and revisit your page.
However, I'm sure none of my information will deter you from trying to charge
for content that is as easily accessible as anything else on the Internet. If
that is the case, can I have the URL to your page? I'd love to take a look at
what you consider valuable enough to charge for.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #6

P: n/a
nntp wrote:
I have a set of links which I want search engines to crawl them, but I
want to disable them from my visitors, so I will ask the link owners to
pay me to let me enable them.
ROTFL! YMMD!
<a disabled href="#">bahbahbah</a>
Does not work, as it is still clickable. It only changes the color to
grey.


The "a" element does not have a "disabled" attribute (in Valid HTML).
PointedEars
--
I Never Give Up Un Till They prave My Gun Out Of My Dead Cold Fingers
Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.