If you see the text of this paragraph, then you are viewing my site without any (or with limited) stylesheets. I suggest using the site search or going directly to the page content using the Skip Navigation link at the top of the page; Skip to Full Menu has similar results. Use the About link to learn more about Zepfanman.com in general.
Hide/Show Sidebar (may not work properly if your browser has Javascript issues)You are here: Blog > Archives (entry details)
The recommendations at Caveat Lector's Killing referrer spam seemed the easiest, but it's not working for me. Can anyone tell from the .htaccess code below what the problem is?
I have many more words inbetween the SetEnvIfNoCase parenthesis as well as a bunch of other redirects, but otherwise, this is my basic .htaccess file. It doesn't seem to be working because I've tried to include several of the key words in a test comment, but none of them cause the comment to be restricted. I believe this is supposed to forward to a 403 page, but I'd prefer a 412 if anyone knows how to do that, too.
I am using MT-Blacklist 1.6.4 with MT 2.661. Does that conflict with these htaccess settings? I know that I should upgrade to MT3, as well, but I thought some of these settings would at least help me out a little bit in the meantime.
Yet another cry for help….
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^zepfanman.com$ [NC]
RewriteCond %{HTTP_REFERER} ^(.*)$ [NC]
RewriteRule ^(.*)$ %1 [R=301,L]
SetEnvIfNoCase Referer ".*(4u\.info|rimpim).*" BadReferrer=yes
order deny,allow
AddType text/html .shtml .html
AddHandler server-parsed .shtml .html
Options Indexes FollowSymLinks Includes
CheckSpelling on
Redirect /Bible http://zepfanman.com/bibleinf.php
RewriteCond %{ENV:BadReferrer} ^yes$ [NC]
RewriteCond %{HTTP_REFERER} ^(.*)$ [NC]
RewriteRule ^(.*)$ %1 [R=301,L]
By rockofvictory |
Mon 2005Feb07 14:44 CST
| News
|
Last edited Mon 2005Mar07 23:07
CST
Trackbacks disabled due to inactivity.
Unfortunately SetEnvIfNoCase is not universally supported. I wrote up something here that details a different but related .htaccess method and includes a script that automates adding additional entries. Note that my script is WordPress specific in terms of validation -- I use the WordPress login information to determine if the script caller has a right to perform the operation -- but you could easily remove the validation code or replace it with MT-centric code.
Hope this helps, good luck.
#C1 | By: ColdForged | Mon 2005Feb14 15:29 CST