.htaccess deny from

This below in the new ‘securer’ wp/ubuntu site setup @ DO denies access to the site [from visitors] with internal server misconfiguration message.

<Limit GET POST> order allow,deny

start IP’s

deny from 146.0.73 deny from 146.0.74 deny from 146.0.78 deny from 146.0.79 deny from 5.39.218 deny from 5.39.219 allow from all </limit>

This works fine on other sites I have hosted at DO.

Whassup with that?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

every time i write and save any ‘deny from’ entry in my web’s root .htaccess file then the whole site errors with a misconfiguration and never displays. For anyone. <br> <br>Any ideas anyone?? thank you.

It doesn’t matter, I don’t think it makes a difference.

is putting ‘deny from’ statements in WP/Ubuntu’s /etc/apache2/ apache2.conf file better than putting them in .htaccess? <br> <br>Except for ‘page load time’ does it make a difference?