You are currently viewing How to disable HTTP access by .htaccess

How to disable HTTP access by .htaccess

Sometimes we need to disabled  HTTP access to make down a website . Today I’m showing how to disable HTTP access by .htaccess

HTTP

Go to file manager and go in to the .htaccess for that account and put:

deny from all

That’s all 🙂 This will effectively make it so no HTTP connections can be made to that website.

If you want to allow them to have access to their website again Then you would go in to the .htaccess and remove the “deny from all” command.

Jobair Alam Bipul

I'm Jobair Alam, a cPanel Certified WHM/cPanel server administrator and web hosting expert with over 10 years of experience in the industry.

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.