protect php includes (with htaccess?)

后端 未结 5 1010
清酒与你
清酒与你 2020-12-18 12:38

First of all, I\'m pretty sure a similar question will be on Stack Overflow, but I didn\'t really find it. Probably because I am using the wrong keywords. So don\'t shoot me

5条回答
  •  粉色の甜心
    2020-12-18 13:10

    Make a .htaccess file in your includes directory

    deny from all
    

    Can't be done for client-side scripts because the browser must be able to access them. The best you can do is obfuscate them.

提交回复
热议问题