Frustrating Link Issue wih PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
idotcom
Forum Commoner
Posts: 69
Joined: Thu Mar 04, 2004 9:24 pm

Frustrating Link Issue wih PHP

Post 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
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

exclude it in your robots.txt file
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
idotcom
Forum Commoner
Posts: 69
Joined: Thu Mar 04, 2004 9:24 pm

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Code: Select all

User-agent: *
Disallow: /
From what I remember not all site crawlers will follow the robots.txt file though..
idotcom
Forum Commoner
Posts: 69
Joined: Thu Mar 04, 2004 9:24 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Once it's in their databases it'll take quite a while for them to dump it, from what I remember.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Yea.. I misread the post.. relax :?
Post Reply