I have a simple PHP
website , I want to know if there is any way to avoid users Access to the files on my website ?
like css
files and other things ?
To prevent my files to show in folder and directories, I used htaccess
file and put this code inside htaccess
:
Options -Indexes
but some users can still access the files content like css codes. for example if an user visit this url :
www.mysite.com/folder
this message should show to him :
Forbidden
You don't have permission to access /css/ on this server.
but if users visit this url :
www.mysite.com/folder/file.css
Then the css will appear to him ...
I want to know how can i prevent this problem ? And avoid restrict files to users ?