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
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: /vote

Maybe this can be mentioned in the documentation somewhere ?
greets,
-- Steven

#1

leafish_dylan - January 13, 2006 - 16:49

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

eaton - January 13, 2006 - 16:51
Category:feature request» bug report
Priority:minor» normal
Assigned to:Anonymous» eaton
Status:reviewed & tested by the community» needs work

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

eaton - January 13, 2006 - 17:26
Status:needs work» fixed

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

Anonymous - January 27, 2006 - 17:31
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.