Re: banning IP adds or /24 from http server
On Tue, Jun 06, 2000 at 10:52:55PM +, Sibuyas wrote: > how do I ban a list of IP adds (or an entire /24) from ever accessing > my apache http server ? i always thought /etc/hosts.deny can do this > but i just discovered that i was wrong. Apache is not linked against libwrap per default, but needs to be linked against in order to work with tcpwrappers. Check out the rule 'deny' in your apache configuration. order deny,allow allow from all deny from 192.168.0.0/24 Should be sufficient for your needs. MfG/Regards, Alexander -- Alexander Reelsen http://joker.rhwd.de [EMAIL PROTECTED] GnuPG: pub 1024D/F0D7313C sub 2048g/6AA2EDDB [EMAIL PROTECTED] 7D44 F4E3 1993 FDDF 552E 7C88 EE9C CBD1 F0D7 313C Securing Debian:http://joker.rhwd.de/doc/Securing-Debian-HOWTO
Re: banning IP adds or /24 from http server
I've done that putting in /etc/apache/access.conf the following lines: # This may also be "None", "All", or any combination of "Indexes", # "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews". # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you (or at least, not yet). #Options Indexes FollowSymLinks Options None # This controls which options the .htaccess files in directories can # override. Can also be "All", or any combination of "Options", "FileInfo", # "AuthConfig", and "Limit" AllowOverride None # Controls who can get stuff from this server. order allow,deny allow from all deny from aaa.bbb.ccc.ddd bye [EMAIL PROTECTED] On Wed, 07 Jun 2000 00:52:55 Sibuyas wrote: > hi ! > > how do I ban a list of IP adds (or an entire /24) from ever accessing my apache > http server ? i always thought /etc/hosts.deny can do this but i just discovered > that i was wrong. > > thanks, > sib > > - > A world of Information. The journey begins here. At Home. > Internet Cebu's web based mail. http://www.i-mailbox.net > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] >
banning IP adds or /24 from http server
hi ! how do I ban a list of IP adds (or an entire /24) from ever accessing my apache http server ? i always thought /etc/hosts.deny can do this but i just discovered that i was wrong. thanks, sib - A world of Information. The journey begins here. At Home. Internet Cebu's web based mail. http://www.i-mailbox.net