Archive for Luglio, 2006

How to stop spambots on trac

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.

Let’s start !!

ok, this is my first post.

Please be patient. I’ll try to post both in english and in italian…

Hope this works!

Miele per gli orsi, altro per le mosche.