Jump to content

Password Protected URL Uploader


Recommended Posts

Hi, a very nice scripts.

Thanks for providing it, I'll need it and try not to use the password protect directory available in Cpanel :-p

Link to comment
Share on other sites

Hi, a very nice scripts.

Thanks for providing it, I'll need it and try not to use the password protect directory available in Cpanel :-p

 

The password protection just gives you another option besides making a directory password protected. But if your going to use .htaccess anyway, here's a neat little trick that will keep you from typing in your password each time. After you've set up password protection on a directory, go back and configure your .htaccess file like this:

 

AuthName "Restricted Access"
AuthUserFile "/home/user/.htpasswds/public_html/directory/passwd"
AuthType Basic
Require valid-user
Order allow,deny
Allow from 100.200.300.195
Satisfy any

 

Just replace 100.200.300.195 with your ip and your ip doesn't have to enter the password, but all others do. This way if your on another pc, you can still access your files with a password.

 

Or simply not have a password at all and only allow your ip access:

 

order deny,allow
deny from all
allow from
100.200.300.195

 

 

Link to comment
Share on other sites

used for .... which code

 

Those .htaccess codes DO NOT have to be used in conjunction with the password script that I posted. I was just giving a couple of examples of what you could do with .htaccess if you were going to use it anyway.

 

 

Link to comment
Share on other sites

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.   Paste as plain text instead

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