Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

hide some links from search engines

hide some links from search engines

hide some links from search engines

How can I hide some active links on a page from search engines, and let search engines index other links on the page

? Preferably not relying on Javascript.

RE: hide some links from search engines

for the actual page use


<meta name="robots" content="noindex"> 

for a specific anchor use


<a .. rel="nofollow">some link text</a> 
using the rel attribute on the link.

Remember search engines do not index links, they index pages, so you need to set the page with the meta tag to tell them not to index the page.

you can also use the robots.txt directive to exclude pages from search engines.

However, it is up to the search engines whether they honour any of these settings.

"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music

RE: hide some links from search engines

Quote (1DMF)

However, it is up to the search engines whether they honour any of these settings.

My experience with my website is that Google generally honors the 'noindex' and 'nofollow' settings while Yahoo tends to ignore them. Have not checked other search engines to know what they do.

Therefore, you have two options:

1) Do not put sensitive information on any web page.
2) Obfuscate any information so that it does not get indexed properly.

I do both.



Poor people do not hire employees. If you soak the rich, who are you going to work for?

"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Raymond

RE: hide some links from search engines


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close