My site is based on magento and i want to know how can i stop someone to access my server through URL BAR like this:
www.mydomain.com/skin/
if someone types this on URL bar it open up my server files etc which is not secure the file permission for this SKIN folder is 755 in my cpanel.
The other folder is VAR folder for this the file permission is also 755 but we cannot access this through URL BAR like this www.mydomain.com/VAR/
as it gives this Forbidden
You don't have permission to access /var on this server.
I want this same for my SKIN Folder too but when i change permission of SKIN folder to 644 my site css files do not load and site comes up all messed up but if i make it 755 site is super fine but directory is accessible through URL bar .
How can i keep 755 permission to SKIN folder but it should not be accessible through URL Bar.