[wp-testers] Re: .htaccess question

cpa31335 tpblogeditor at gmail.com
Sat Nov 10 19:57:45 GMT 2007


Thanks for all the input.... I've not monkeyed with it... here's what
I've got to work with....I didn't write this.. some was done
automatically and some by my host:
-------------------------------
RewriteEngine on
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
#The next line modified by DenyIP
order allow,deny
#The next line modified by DenyIP
# deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName thepopulistblog.com
AuthUserFile /home/k8cpa/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/k8cpa/public_html/_vti_pvt/service.grp

<Files 403.shtml>

allow from all
</Files>

deny from 72.240.160.136
RewriteCond %{HTTP_REFERER} !^http://thepopulistblog.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://thepopulistblog.com$      [NC]


RewriteCond %{HTTP_REFERER} !^http://www.thepopulistblog.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]

deny from 71.211.165.234
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

RewriteCond %{HTTP_COOKIE} !^.*comment_author_.*$
RewriteCond %{HTTP_COOKIE} !^.*wordpressuser.*$
RewriteCond %{HTTP_COOKIE} !^.*wp-postpass_.*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1index.html.gz
-f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1index.html.gz [L]

# END WordPress


### Prevent "hot linking" of my images from other sites
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://thepopulistblog.com/.*$     [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thepopulistblog.com/.*$     [NC]
RewriteConD %{HTTP_REFERER} !^http://www.politicstopsites.com/.*$    [NC]

RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$
http://thepopulistblog.com/nothief.html [R,NC]


deny from 130.64.88.36
deny from 75.131.167.
deny from 69.47.125.
-------------

my hosts info:

Server Namesr1
cPanel Version11.15.0-RELEASE
cPanel Build17665
Themex3
Apache version2.0.61
PHP version5.2.4
MySQL version5.0.27-standard
Architecturei686
Operating systemLinux
Shared Ip Address74.200.216.190
Path to sendmail/usr/sbin/sendmail
Path to PERL/usr/bin/perl
Kernel version2.6.9-023stab044.
4-enterprise
cPanel Pro1.0 (RC1)

------------

thanks for all the feedback.... so far. :)

-CHuck



-- 
Chuck Adkins
http://thepopulistblog.com


More information about the wp-testers mailing list