ddantes
asked on
.htaccess not blocking a specified referrer
I'm using .htaccess to block web visits from unwanted referrers. However, I still get occasional visits, most recently from www.housesittersinternational.com Can you explain how this is happening, and how to remedy it?
#Block traffic from "bad" referrers
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} make-money-online\.7makemoneyonline\.com [NC,OR]
RewriteCond %{HTTP_REFERER} 245\.semalt\.com [NC,OR]
RewriteCond %{HTTP_REFERER} best-seo-solution\.com [NC,OR]
RewriteCond %{HTTP_REFERER} best-seo-offer\.com [NC,OR]
RewriteCond %{HTTP_REFERER} 100dollars-seo\.com [NC,OR]
RewriteCond %{HTTP_REFERER} buttons-for-your-website\.com [NC,OR]
RewriteCond %{HTTP_REFERER} Get-Free-Traffic-Now\.com [NC,OR]
RewriteCond %{HTTP_REFERER} semalt\.com [NC,OR]
RewriteCond %{HTTP_REFERER} housesittersinternational\.com [NC,OR]
RewriteCond %{HTTP_REFERER} buttons-for-website\.com [NC,OR]
RewriteCond %{HTTP_REFERER} success-seo\.com [NC,OR]
RewriteCond %{HTTP_REFERER} semaltmedia\.com [NC]
RewriteRule .* - [F]
Where is the .htaccess versus the pages being accessed?
ASKER
Thank you for your question. .htaccess resides in the root folder on the server, at the same level as the pages which were accessed.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.