Jump to content

Private files with Permissions?


Twango
 Share

Recommended Posts

There are several methods. One way is to move those files outside of the web root, so they aren't accessible online at all. PHP can still read them. Another way is to have the include files check something like the URL the page was accessed with to make sure they're not accessing that file directly. You can also define a constant or variable in the parent file, and then check to see if that constant or variable is defined in the included file.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...