View Single Post
Old 05-04-2007, 11:55 AM  
DrCocker
Registered User
 
Join Date: Oct 2003
Posts: 14
Thanks again.

I'm working on figuring out how to make an array to store as many IP's to filter out as needed (dynamic), and I guess I'll do a loop through them, only processing the ip's that aren't in the array.

The mysql idea sounds awesome too.

Re: the weird handling of the actual .gif, I wonder if it has something to do with the .htaccess I already have at the root of the website? I know these work recursively, and I don't see anything in there that should cause it, but maybe your eyes can spot something that I'm missing? (note: the blocked IP's are from some guy that I had a spam problem with in the past.)

Code:
<limit GET PUT POST>
order allow,deny
deny from 24.155.84.7
deny from 59.77.0.167
deny from 61.11.99.110
deny from 62.1.204.210
deny from 64.60.142.202
deny from 64.246.18.25
deny from 65.170.66.134
deny from 66.36.243.77
deny from 66.109.17.12
deny from 68.116.39.3
deny from 81.169.169.4
deny from 81.208.95.27
deny from 81.222.178.26
deny from 82.103.131.31
deny from 84.204.166.183
deny from 85.91.236.141
deny from 86.57.154.5
deny from 86.57.155.193
deny from 86.57.156.232
deny from 86.57.157.190
deny from 87.118.98.133
deny from 87.118.103.185
deny from 87.118.104.44
deny from 87.118.104.239
deny from 129.41.250.20
deny from 134.83.1.225
deny from 138.26.144.52
deny from 200.107.51.192
deny from 202.101.6.85
deny from 202.213.200.228
deny from 203.113.13.3
deny from 204.169.116.1
deny from 207.234.146.114
deny from 207.234.225.206
deny from 210.210.12.141
deny from 211.5.216.27
deny from 212.227.93.20
deny from 213.140.56.4
deny from 216.32.65.74
deny from 218.154.47.134
deny from 221.13.66.161
deny from 221.149.59.98
allow from all
</limit>

# deny most common except .php
<filesmatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module)$">
deny from all
</filesmatch>

#Disable .htaccess viewing from browser
<files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</files>

<files ~ "\config.php$">
deny from all
</files>

# You can change to yoursite.com
ErrorDocument 403 /error.php?403
ErrorDocument 404 /error.php?404

Options -Indexes
DrCocker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook