I am using .htaccess
to prevent user to access files through url.
The line
RewriteRule ^frontend/assets/css/(.+) index [L,R]
works fine. It prevents users to access css files.
However,
RewriteRule ^frontend/assets/images/(.+) index [L,R] //Images
as well as
RewriteRule ^frontend/assets/js/(.+) index [L,R] //Javascript files
do not work.
I have tried multiple solutions but still I can access js
and images (png and svg)
files from the url.
Is there a way to handle this ?