Deterring Spambot

Spam comments and fake user registrations are really annoying. You got tonnes of fake registrations for your forum and blog and it is time consuming to delete and manually approve registrations. Did you know that these automated process can be minimized.
All you need is .htaccess file inside your public_html folder and include lines below.

RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.*)=http [NC]
RewriteRule ^(.*)$ – [F,L]

The rules above will block perl user agents. Normally being used by automated fake user sign ups for forums and blogs.
What is user agents? Yes you can read about it here Visitors normally visit your web site and use Mozillla user agents (Firefox and IE 9) and IE user agents for older IE browsers. Spambots use perl scripts to automate their job.

Illustration purpose only
Illustration purpose only

p/s User agents can be faked but most common spammers are not that smart! Grrr