Password Protect a Folder with PHP

  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

Hey guys,

My current problem is this: I have a folder on my website that I want to password protect. for example: http://www.mysite/admin <------- admin being the folder I want to lock down. I am looking for a PHP script/management system that will lock the folder without requiring me to insert code at the top of every page in the folder. Any help would be appreciated. Thanks
  • Rat
  • Guru
  • Guru
  • User avatar
  • Posts: 1190
  • Loc: desk

Post 3+ Months Ago

Did you try http://www.scriptsearch.com ?
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5148
  • Loc: SC-USA

Post 3+ Months Ago

//moved to Scripting
  • Carnix
  • Guru
  • Guru
  • User avatar
  • Posts: 1098

Post 3+ Months Ago

Well, I would suggest looking into scripts that manipulate the .htaccess system on Unix. I don't know about on IIS though... Security is done differently in Windows, it's much more OS integrated, making it more difficult to manipulate without admin rights on the box.

How come you don't want to insert any code on your pages? Do you use a common include file? If so, the codes already inserted, all you have to do is write it...

.c
  • Scorpius
  • Proficient
  • Proficient
  • User avatar
  • Posts: 401
  • Loc: Scorpion Hole

Post 3+ Months Ago

Here is a free PHP script from http://www.hotscripts.com that can edit .htaccess files easily.
http://www.hotscripts.com/Detailed/13698.html
Looks pretty easy to use so you should be able to figure it out.

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: Liamw411 and 69 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.