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

Category: Server Usage

jeannies
Asked:
2012-04-18 4:38 pm

Hits: 1,313
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
2012-04-18 4:45 pm
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?

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. Cpanel licence is expired
  2. How do I provide a truly secure FTP site for my client to upload files with sensitive data (PHI - Personal Health Information, as referred to by HIPAA)?
  3. styles are not rendering on initial page load

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!