Monday, 23 September 2013

htaccess for security in php

.htaccess setting for security

 

PHP.INI

AddType application/x-httpd-php .dhtml

allow_url_fopen = off

expose_php = off

magic_quotes_gpc = off

magic_quotes_sybase = off

register_globals = off


.HTACCESS
AddType x-mapp-php4 .html .htm .shtml

Options -Indexes

<Files *.ini>
Order deny,allow
Deny from All 
</Files>

                                  

 

No comments:

Post a Comment