Roger Marquez
Elite Member
- Apr 17, 2017
- 5,126
- 7,816
Tried editing a site´s .htaccess file to block any incoming traffic from site´s I believe are potentially spammy, low-quality, and/or toxic.
Unfortunately, the code snippet broke the site, and I don´t know why.
So, I would like to run the code through you guys and see if you spot the error.
# Block Referral Traffic From Spammy Sites
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain1\.net [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain2\.info [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain3\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain4\.info [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain5\.org [NC,OR]
RewriteRule .* - [F]
Thoughts?
Unfortunately, the code snippet broke the site, and I don´t know why.
So, I would like to run the code through you guys and see if you spot the error.
# Block Referral Traffic From Spammy Sites
RewriteEngine on
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain1\.net [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain2\.info [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain3\.org [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain4\.info [NC,OR]
RewriteCond %{HTTP_REFERER} ^https?://([^.]+\.)*domain5\.org [NC,OR]
RewriteRule .* - [F]
Thoughts?