Forum Moderators: phranque
The more IPs you have, and the longer the list gets, the slower the process. So today I downloaded my htaccess file from each site and found that they are simply using the format in the quote box below. This makes it much faster for me because now I can add a lot of new IP's very quickly, and then re-upload htaccess.
However, when I occasionally have the opportunity to check this forum here at Webmaster World, I see far more sophisticated methods to block unwanted spiders. So my question is this: For someone who does not have expertise in Apache, will the htaccess format below be reasonably effective? (though it may not be totally foolproof)
<Files 403.shtml>
order allow,deny
allow from all
</Files>deny from 130.234.4.60
deny from 138.245.181.1
deny from 204.60.97.116
Thanks for any insight...
...........................
Thanks Jim for your very prompt response. Is this the correct order directive?
<Files 403.shtml>
Order Allow,Deny
</Files>
Deny from 130.234.4.60
Deny from 138.245.181.1
Deny from 204.60.97.116
Allow from all
If this is the right way to handle htaccess, I'll make the changes immediately...
.........................
[edited by: Reno at 1:57 am (utc) on Jan. 30, 2008]
Order Deny,Allow
Jim
<Files 403.shtml>
Order Deny,Allow
Allow from all
</Files>Deny from 130.234.4.60
Deny from 138.245.181.1
Deny from 204.60.97.116
Or should "Allow from all" be moved to the bottom, as in:
<Files 403.shtml>
Order Deny,Allow
</Files>Deny from 130.234.4.60
Deny from 138.245.181.1
Deny from 204.60.97.116
Allow from all
If either of them is right, then I'll get onto the fix...
........................
will the htaccess format below be reasonably effective? (though it may not be totally foolproof)
It's a good beginning until your able to allocate time to broader ranges.
You'll learn very quickly that denying to the precise Class D (zzz.zzz.zzz.000) will come back to haunt you almost everytime as users generally have multiple ranges in both the Class C and Class D ranges available.
Although NOT attempting to deny google, their available and active ranges across different Classes are a good example:
[iplists.com...]
I checked my denied ip's against what they list for Google and all is well. I do wish they'd also had an up-to-date listing for MSN/LIVE (my own records mostly show the range of 207.46 and 65.55). But since Google is the thousand pound gorilla, that's the one where I'll need to keep the closest check.
............................
[edited by: Reno at 6:46 am (utc) on Jan. 30, 2008]
...................................