Forum Moderators: phranque

Message Too Old, No Replies

order allow, deny vs. order deny, allow

Banning specific IPs from accessing your site

         

Scooter24

9:28 am on Oct 17, 2004 (gmt 0)

10+ Year Member Top Contributors Of The Month



I need to ban specific IP addresses from accessing my site. What is the correct syntax:

order allow, deny
allow from all
deny from xx.xx.xx.xx
deny from xx.xx.xx.xx
etc.

or

order deny, allow
allow from all
deny from xx.xx.xx.xx
deny from xx.xx.xx.xx
etc.

Or should the "allow from all" be put at the end?

jdMorgan

3:12 am on Oct 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See the Apache mod_access Order directive [httpd.apache.org].

Jim