Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

allow,deny; deny,allow

Status
Not open for further replies.

jhsands

IS-IT--Management
Aug 25, 2006
5
US
I did look at these websites before posting to try and find my answer.

Is this correct? I get confused.... allow,deny; deny,allow.

Code:
ErrorDocument 403 [URL unfurl="true"]http://domain1.com/403.shtml[/URL]
ErrorDocument 404 [URL unfurl="true"]http://domain1.com/404.shtml[/URL]
<Files 403.shtml|404.shtml|bad_link.php>
order allow,deny
allow from all
</Files>
 
What are you trying to achieve here? - a custom error document? From what I see above, no part of the <Files>...</Files> directives seem to be required. Are your ErrorDocuments not being served?
 
I have a rather large extensive block list below that and I want those who are blocked to be able to see the 403, 404
 
The order directive simply tells apache which you wanted parsed first and make the second choice the default state. So when you say 'Order allow, deny' it will parse the 'allow from' statements first and set the default to deny. You can allow from 'all' or a domain, subnet or range of ip addresses. You can also deny from a range of ip adresses with those allowed. It all depends on whether you want to be more restrictive on those you will allow or those you will deny.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top