LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Banning IP blocks using .htaccess

[ILUG] Banning IP blocks using .htaccess

Patrick Stack lists at adeptassociates.net
Mon Oct 16 11:19:14 IST 2006


Yes, that's exactly what I was looking for (the correct syntax), Cian

Tnx
Patrick

Cian Davis wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>  
>
> Correct me if I'm wrong but isn't that range just 218.98.32.0/18 so
> makes for a very simple Deny from?
>
> Regards,
> Cian
>
> Patrick Stack wrote:
>
>   
>> Anyone know the syntax for banning a block of IP addresses in
>> .htaccess?
>>
>> I want to deny access to all IPs from 218.98.32.0 to 218.98.63.255
>> as I'm getting tons of comment spam from this Chinese source. Is
>> there a way to deny with a single line, or do I have to put each
>> one on a separate line like so: deny from 218.98.32. deny from
>> 218.98.33. deny from 218.98.34. deny from 218.98.35. deny from
>> 218.98.36. deny from 218.98.37. deny from 218.98.38. deny from
>> 218.98.39. deny from 218.98.40. deny from 218.98.41. and so on?
>>
>> I've googled and read extensively online but haven't come across an
>> answer yet.
>>
>> Patrick Stack
>>     
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.2 (MingW32)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>  
> iD8DBQFFMMUi2yUma7R/3b8RAjBkAKDF0mbJ+mmK3XgbN0UW+ryQCXZ2aACfXRf6
> s4jT5weohQ/ueBErsWeFLMg=
> =Tw1Y
> -----END PGP SIGNATURE-----
>
>
>
>   




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell