php - .htaccess deny access to specific files? more than one -
I am able to disable access to a file with .htaccess, but I do not know how to reject multiple files
They are .php so that I can not disable a file type (i.e. only tutorial is called online ..)
& lt; Files ...? & Lt; / Files & gt;
Or something like "home.php, file.php, test.php" How do I deny permission to access all three files with that tag? Or similar, please help!
If you want to exclude files based on regular expressions, instead of filesMatch files, like :
& lt; FilesMatch ^ ((home | test | file) .php $ | mysecretfolder | asecretpicture \ .jpe? G) $ & gt; ... & lt; / File match & gt;
Comments
Post a Comment