Is it possible to prevent people from seeing files like .bak from am apache directory ? If there is a request for the url (http://foo.com/bar.bak), it’d be good to have a 404 error, and prevent anybody to upload the file.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Now that I know the answer, here it is : one of them is to use RewriteRule in the httpd.conf. – Cedric 14 secs ago edit
Now that I know the answer, here it is : one of them is to use RewriteRule in the httpd.conf.
This is the main idea. Please, modify the first regex to your needs ! (as urls like
foo?bar=obuwon’t work, norfoo/bar)