i want to disallow a particular directory from search engines.
The above code works but i dont want to mention the full name of the directory in robots.txt
what should i do
It is not possible to block any kind of directory without their original name Hence if you want to block particular directory then it is require to mention full name or path. Check below details you will get more ideas about robots.txt : http://www.robotstxt.org/robotstxt.html
It is possible:
Do not link to the directory. Security by obfuscation is little security but SE's don't try to find non-linked pages.
As KJ said, you must list the directory in robots.txt to tell honest SE's they're not allowed to follow links to that directory. Bad SE's, however, will merely use that information to take them into the directories you want to protect.
If you must link, then use password protection on the directory. That'll stop SE's in their tracks!
If none of those suit you, create a form whose action is to take visitors to the forbidden land via submit. SE's won't be searching for that as a link so it may work to hide the link.
Think outside the box: robots.txt is next to worthless so be creative with other solutions.
This topic is now closed. New replies are no longer allowed.