Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-06-29 12:00:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,257
Website GitHub Mastodon Twitter

persistent spam referrers

We have persistent spam referrers and I am planning to block them with htaccess. What would the best method be?

A

RewriteEngine On
RewriteCond %{HTTP_REFERER} domain1\.tld [NC,OR] 
RewriteCond %{HTTP_REFERER} domain2\.tld
RewriteRule .* - [F]

or B

<Limit GET>
Order allow,deny
Allow from all
Deny from domain1.tld
Deny from domain2.tld
</Limit>

?
I’m not sure about the difference in the above snippets.

Last edited by colak (2011-06-29 12:02:03)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 2011-06-30 06:27:28

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,257
Website GitHub Mastodon Twitter

Re: persistent spam referrers

bump:)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB