Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

.htaccess Prevent access to php.ini

<FilesMatch "^php5?.(ini|cgi)$">
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS
</FilesMatch>
 
PREVIOUS NEXT
Tagged: #Prevent #access
ADD COMMENT
Topic
Name
7+5 =