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.

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.

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.