Why is order allow deny from all in my .htaccess file?

Category: Server Usage

jeannies
Asked:
2012-04-18 12:38 pm EST

Hits: 5,209
I am finding this in some htaccess files that are on the server. Is this a standard setup in your htaccess files? I was not using the and on the previous host's server. Do I need it on yours? I only use the Order Deny/Allow directive when banning IP addresses.


Order Deny,Allow
Deny from all

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

BradM
Staff
5,399 Points
2012-04-18 12:45 pm EST
Hi jeannies,

When you are blocking IP addresses from your website, it is common to see:

Order Deny,Allow
Deny from all


I actually had the opportunity not too long ago to learn more about "order allow,deny" vs. "order deny,allow", and the information I found may help answer your question.

You can find more information about the allow / deny commands in your .htaccess file here:
My .htaccess file is not blocking IP addresses correctly

I hope that helps! Feel free to post any comments at the bottom of this page if I can help any further.

Thanks!
- Brad

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!