Pages

How to Protect PHP include files

Add this .htaccess file to your includes of the views folder of your PHP project to Protect  include files. This file prevents that your .PHP view files are accessed directly from the outside

How to Protect PHP include files

CODE

<Files ~ "\.(htaccess|php)$">
order allow,deny
deny from all
</Files>

No comments:

Post a Comment

Search This Blog