blacklist


Blocking Referers and IP adresses using mod_rewrite

Blocking a single referer: RewriteEngine on RewriteCond %{HTTP_REFERER} example\.net [NC] RewriteRule .* – [F] Block more than one referrer: RewriteEngine on RewriteCond %{HTTP_REFERER} example\.net [NC,OR] RewriteCond %{HTTP_REFERER} anotherexample\.net RewriteRule .* – [F] Using rewritemap: RewriteMap blacklist txt:/path/to/blacklist.txt RewriteCond %{HTTP_REFERER} ^(.*)$ RewriteCond ${blacklist:%1} ^denied$ [NC] RewriteRule (.*) – [F] Just create a text file blacklist.txt with the following […]


Spamdyke as Antispam Solution in Plesk with Qmail

First of all you need to make sure that you have the necessary packages to compile spamdyke: apt-get install gcc make libc-dev   Then download the latest version: http://www.spamdyke.org/download.html   At the moment that I'm writing this howto, the latest version is 4.0.10: wget http://www.spamdyke.org/releases/spamdyke-4.0.10.tgz tar -xvzf spamdyke-4.0.10.tgz cd spamdyke-4.0.10/spamdyke   After unpacking it, you […]