Mar

19


Sometimes, you may want to put database configuration information in an .inc file, so that you could include it in any PHP files when you need that commonly used, shared information. But if you point to the location of the .inc file in the browser bar and hit enter…oops! All your ‘top secrets’ are published! Don’t want people to see the deadly sensitive information in your inc files? Use the follow to display a 403 Forbidden error instead.


<Files ~ "\.inc$">
Order Allow,Deny
Deny from All
</Files>



Similar Posts

Comments

Name (required)

Email (required)

Website

Speak your mind

Sponsors




Links