On 2002.07.18 12:24 daniel wrote: > i believe you'd want to use iptables > although i have no idea how to do that > > > ----- Original Message ----- > Sent: Thursday, July 18, 2002 9:14 AM > Subject: deny connections from certain ip > > > What is the best way to deny connection to port 80 from a certain ip > > address? Does apache have such a feature without using a .htaccess > > file or should I just deny the source ip via iptables? Also, I may > > want to add others to deny port 80 later so if apache can do this > from > > an external file in /etc/httpd.conf/ would be great.
With iptables do "iptables -I INPUT -p tcp -s <IP addr> --dport 80 -j DROP" Apache can do source based access control with the "allow", "deny" and "Order" directives. You have to reload the config to add a new block though. Cheers, -- Javier Gostling Ingeniero de Sistemas Virtualia S.A. [EMAIL PROTECTED] Fono: +56 (2) 202-6264 x 130 Fax: +56 (2) 342-8763 Av. Kennedy 5757, of 1502 Las Condes Santiago Chile _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list