Assuming you are using Apache, your .htaccess file will look something like this.
<FilesMatch ".*\.php"> Order allow,deny Deny from all Satisfy All </FilesMatch> <IfModule php5_module> <FilesMatch ".*\.php"> Allow from all Satisfy All </FilesMatch> </IfModule>
The first rule denies access to all .php files. By default, the user will see error 403 (Forbidden).
If the PHP5 module loads successfully, the second rule will affect what grants access.
Jack shedd
source share