Block directory access with .htaccess rules
It's very simple to block access to a directory. We will use in this article some rules for the .htaccess file. Just add the following lines in your .htaccess file: RedirectMatch 403 ^/folder_name/?$ ErrorDocument 403 default The above lines will…