00 Votes

HTACCESS: Forbid all access to website - Block any request

Question by Guest | 2017-10-27 at 19:20

How can I prevent or disallow any external access to my webspace? I do not want to allow any access to my website via a domain or URL and using the browser, I only want to access the protected directory by FTP or with a PHP script.

Is something like this possible? And if so, how?

ReplyPositiveNegative
0Best Answer0 Votes

Place a file named .htaccess in the root directory of your site or in the folder you want to protect. This file should only have the following content:

deny from all

This means that the folder can no longer be accessed from the outside, but internal access via FTP or PHP is still possible.
2017-10-28 at 17:57

ReplyPositive Negative
Reply

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.