I would like to block all external http requests directed to a certain folder and allow all internal (from the server itself) http requests.
This is my .htaccess file
# Denied access folders
RewriteRule ^resources* - [F]
RewriteRule ^assets* - [F]
Thanks for helping 🙂
IMHO, it’s easier to put an appropriate
.htaccessfile inside each of the folders and avoidmod_rewrite:You can add as many
Allowrules as you need.