InMotion Hosting Support Center

Order Deny,Allow in .htaccess

Category: Server Usage

2012-04-18 12:38 pm EST

Hits: 10,777
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.



3,862 Points
2012-04-18 12:45 pm EST
Hi jeannies,

Thanks for your question about Order Deny,Allow in .htaccess.

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.

- Brad

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

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

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:
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!