Page 1 of 1

Frustrating Link Issue wih PHP

Posted: Tue Mar 14, 2006 1:35 pm
by idotcom
Hi.

I've been trying to hide just one freaking url from search engines, including google. This is not for blackhat or being sneaky. I simply want to keep one link out of any index. The url is just a variable that is for USERS to change flash design theme. I don't want the engines indexing it.

Ohh.. and the link is in a image map.


I'v tried using php with USER AGENT strpos to check if google or msn or yahoo, and javascript to write the link html in, because I read search engines don't use javascript... so what the heck is my link doing in google.

Someone please tell me how to keep my link out of any and all search engines. No robots should see the link.

PHP... Javascript...???

Any help would be appreciated.

Thanks

Posted: Tue Mar 14, 2006 2:36 pm
by s.dot
exclude it in your robots.txt file

Posted: Tue Mar 14, 2006 2:47 pm
by idotcom
scrotaye wrote:exclude it in your robots.txt file
How do you exclude one link that does not load any specific page? With robots file?

The link for example is: $request_uri?designtype=1

Posted: Tue Mar 14, 2006 2:53 pm
by John Cartwright

Code: Select all

User-agent: *
Disallow: /
From what I remember not all site crawlers will follow the robots.txt file though..

Posted: Tue Mar 14, 2006 3:21 pm
by idotcom
Jcart wrote:

Code: Select all

User-agent: *
Disallow: /
From what I remember not all site crawlers will follow the robots.txt file though..


So, I'm supposed to kill my site for one link... LOL

That is extremely bad advice. What if someone did that? Their whole site would be kept out of search engines.

Don't do that.

Thanks for the amusement though :D

Posted: Tue Mar 14, 2006 3:27 pm
by feyd
Once it's in their databases it'll take quite a while for them to dump it, from what I remember.

Posted: Tue Mar 14, 2006 3:30 pm
by John Cartwright
Yea.. I misread the post.. relax :?