don't let webcrawlers try to vote on your nodes ;)
deepstar - January 13, 2006 - 11:55
| Project: | Simple Vote |
| Version: | 4.7.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | bug report |
| Priority: | normal |
| Assigned: | eaton |
| Status: | closed |
Jump to:
Description
Hi,
I noticed today that msnbot.msn.com was indexing my site because everywhere in my logs it said "access denied" (I added access control to the simplevote module):
the webcrawlers are following the links to $yoursite/vote/..., something you most likely do not want.
To stop webcrawlers from doing this, add the following line in your robots.txt (see http://drupal.org/node/22265 for more information):
Disallow: /voteMaybe this can be mentioned in the documentation somewhere ?
greets,
-- Steven

#1
This won't stop crawlers that ignore robots.txt. I haven't used this module, but surely the "vote" link shouldn't be displayed if the user doesn't have permission to vote? That's how most other modules works.
#2
Actually, it IS displayed regardless of permissions. I originally intended SimpleVote as a pure API demonstration rather than a full-featured module, but I think I need to take a quick look at it and hammer out some additional bits of functionality -- like blocking unregistered users. Heh.
I'll change the basic function to write out static versions of the rating-stars if the user is anonymous.
#3
The new version posted to CVS displays spans, rather than links, to anonymous users. The net change is about 3 lines of code in the theme function. Along the way, the CSS file was also simplified a bit -- should be a little easier to see what it's doing, and redundant definitions were removed.
#4