HTAccess does not block sites?
I have been getting referrer spam so someone told me to use HTAccess to blog attempts from certain addresses. I have appended the following to the end of my HTAccess file in root (I have wordpress blog):
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} premiumbags[OR,NC]
RewriteCond %{HTTP_REFERER} munichbambas [OR,NC]
RewriteCond %{HTTP_REFERER} gautamgoudar [OR,NC]
RewriteCond %{HTTP_REFERER} phistrackers[OR,NC]
RewriteCond %{HTTP_REFERER} ipodtouchrepair [OR,NC]
RewriteCond %{HTTP_REFERER} burnedsoul[OR,NC]
RewriteCond %{HTTP_REFERER} sn.im[OR,NC]
RewriteCond %{HTTP_REFERER} inventsource[OR,NC]
RewriteCond %{HTTP_REFERER} jaagers[OR,NC]
RewriteCond %{HTTP_REFERER} tu-berlin[OR,NC]
RewriteCond %{HTTP_REFERER} surfhighheels[OR,NC]
RewriteCond %{HTTP_REFERER} guru-articles[OR,NC]
RewriteCond %{HTTP_REFERER} income[OR,NC]
RewriteCond %{HTTP_REFERER} sex[OR,NC]
RewriteCond %{HTTP_REFERER} backlinks [NC]
RewriteRule \.html?$ - [F]
My understanding is that the Rewritecond will block anything with that word in the referring address, so any domain including the word sex is blocked.
But things are still getting through, so what have I done wrong here?
-
andreasnrb -
Thanks
{{ DiscussionBoard.errors[4459418].message }} -
-
nthmarketing -
Thanks
{{ DiscussionBoard.errors[4459823].message }} -