I've noticed an increased amount of people visiting my blog with the FunWebProducts string in their User-Agent. This little piece of adware/spyware comes in the form of a toolbar and bundled with some applictions.
I'm debating blocking users with the FunWebProducts tag in their user-agent out of principal, and direct them to another site so they can learn how to get it removed...
Thoughts anyone?
Wednesday, April 25. 2007
FunWebProducts
Referrer spam, rewrite rules
Okay, so i've gotten completely sick of those stupid referrer spams. Lately I've been seeing more and more spams with embedded comma characters with multiple sites in the referrer field. So, with a little bit of work, I figured, why not write a mod_rewrite apache rule to block them.
Pretty simple, and works with a properly configured .htaccess file.
CODE:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^.*,.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*(poker|cialis|porn|holdem|casino).*$
RewriteRule .* - [F]
RewriteCond %{HTTP_REFERER} ^.*,.*$ [OR]
RewriteCond %{HTTP_REFERER} ^.*(poker|cialis|porn|holdem|casino).*$
RewriteRule .* - [F]
Pretty simple, and works with a properly configured .htaccess file.
(Page 1 of 1, totaling 2 entries)



