How to deny access to specific file using htaccess ?
Hi;
I would like to deny access to .log files but with an additional condition, if the requested filename of the log file exist than deny access but if the requested filename doesn't exist than do nothing. Example, i have in my web server a file called web.log so the request should be denied but the request shouldn't be denied because the file webo.log doesn't exist. So i need to check first if the file exist, if yes deny if no do nothing. The traditional command which doesn't check if the requested file exist or no, so i need to add conditions so how to do that with htaccess ?
Thank you.
Last edited by Dareros; 06-21-2014 at 05:24 PM.
Reason: Remove some repititions
|