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?
Related Topics
Website Performance: Caching and Expires Header for Images, CSS and JavaScript
Tutorial | 0 Comments
Block specific IP Addresses with HTACCESS
Tip | 0 Comments
Website Performance: Deliver JavaScript and CSS files compressed to reduce loading times
Tutorial | 0 Comments
Create Custom Error Pages for Website
Tip | 0 Comments
XAMPP: How to set up SSL/HTTPS for local Projects
Tutorial | 0 Comments
HTACCESS: Force Download of specific File Types
Tutorial | 0 Comments
How to create .htaccess file using Windows? Windows prevents me from creating a .htaccess file!
Question | 1 Answer
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.
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:
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