Forum Moderators: coopster
It uses this Robots.txt:
User-agent: *
Disallow: /getout.php
This is probably an obvious question but I havn't used a spider trap before: To use the spider trap are you supposed to create a link, say on your index.html to a page in a spider-trap-folder - where the spider-trap-folder has the robots.txt?
Otherwise you are putting a disallowing robots.txt in your root folder - which I don't want to do.
...then you must do something (block it or redirect it) if you don't want it to spider the rest of the site.
link...unclickable to a human user. You can use javascript for that
But its still a hidden link. Wouldn't that attract a SE penalty from Google for SEO tricks?
I don't think so, because you already disallowed it in the robots file.
Also, there are many legitimate uses of the CSS display and visibility properties. DHTML pop-out and drop-down menus are an examlple.
Be sure to add a javascript wrapper to kill the link if it get's clicked.
<a href="/getout.php" onclick="return false">
<img src="/clear.gif" style="border: none; width: 1px; height: 1px;" />
</a>
I just posted an updated version of the script here [webmasterworld.com]. There is a flaw(not serious) in the other one.