Jump to content

What is the best way to secure/limit access to directories and files?


centerwork

Recommended Posts

I've been searching for sometime now to find the best way to secure folder and files while allowing for an php login page?

 

The best way I have found is with a htaccess. But that uses basic authentication with the pop-up window. Other methods require Code spinets on each page. Any suggestion would be appreciated.

 

Thank you.

Link to comment
Share on other sites

I dont think there is any other method.

 

You either .htaccess which uses the generic popup window, you build a php login system, or you have your php page interface with the .htaccess file.  The later two both require code snippets.  If you dont want to copy/paste the code into ever page then put it into a separate page and use the include() function to tack it onto the top of every page.

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.