apache - How to set rules in .htaccess to prevent downloading of .htaccess files
滿天的星座
滿天的星座 2017-05-16 16:58:27
0
1
732

I often receive alerts to download .htaccess which is quite annoying. I want to prohibit access to it, but I added rules in .httaccessRewriteRule /.(svn|git|htaccess) - [F,L]Invalid, it can block svn, git, but cannot block .htaccess access, and if the .htaccess accesses the subdirectory (the file does not exist), it can successfully block access.

Does anyone know how to set rules in the .htaccess file to prevent access to the .htaccess file? If I don’t want to set or try it elsewhere, just ask if it can be done in the .htaccess file.

滿天的星座
滿天的星座

reply all (1)
过去多啦不再A梦
 order allow,deny deny from all 
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!