Block Spam Referer with .htaccess file

Prefer PHP Script for the perfomances


Stop spam Referer was written in PHP to assume the bests performances.
htaccess file cause a signifiant CPU server side.
Loss of performance for the website using this formule throught .htaccess

In the case oh a large number of keywords and domain names are used, .htaccess have a signifiant impact of your performances, SSR prevent it .

As a reminder to ban some domain names by keywords by .htaccess file, this simple code will do nicely
Code PHP
RewriteCond %{HTTP_REFERER} (baccarat|casino|cheap) [NC]
RewriteRule ^.* %{HTTP_REFERER} [L,E=nolog:1]

RSS

Dossiers







 Top Cache NoActive Copyrights PHP Minimus Blog and CMS