How to Block IP Addresses & Specific visitors with .htaccess

Modified on Wed, 14 Oct 2020 at 08:48 PM

# Block referrer spam & Country
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^http://.*avtovei.\.ru/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*livegif.\.ru/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*mapcenter\.ru/ [NC,OR]
RewriteCond %{HTTP_REFERER} ^http://.*mcomp\.org/ [NC,OR]
RewriteRule ^(.*)$ – [F,L]



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article