How to stop spambots on trac
Giovedì, Luglio 20th, 2006
It’s very simple, indeed.
Edit your apache configuration (or, if you prefer, create an .htaccess file).
Add the following to the configuration of your virtual host.
<Location /cgi-bin/trac.cgi/newticket >
AuthUserFile /path/to/.htpasswd
AuthGroupFile /dev/null
AuthName "Please use User/pass to login"
AuthType Basic
<limit POST>
require valid-user
</limit>
</Location>
Of course, you should create an .htpasswd file, set the path correctly and modify the message to show the username and the password.
Hopefully, this will stop spambots.