GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can I password protect a file? (https://gfy.com/showthread.php?t=202874)

Oracle Porn 11-29-2003 09:50 AM

Can I password protect a file?
 
like I don't want to protect the whole dir just a file
like oracleporn.com/something.cgi

can I do that somehow?

chemicaleyes 11-29-2003 09:51 AM

I'm sure you can.

:glugglug

Oracle Porn 11-29-2003 09:52 AM

Quote:

Originally posted by chemicaleyes
I'm sure you can.

:glugglug

GREATTTTTTTTTT help bro thanks

corvette 11-29-2003 09:53 AM

zip it up with a password

Oracle Porn 11-29-2003 09:54 AM

Quote:

Originally posted by corvett
zip it up with a password
not a zip file..
a cgi or a php file

chemicaleyes 11-29-2003 09:54 AM

Quote:

Originally posted by Oracle Porn


GREATTTTTTTTTT help bro thanks

NP bro, someone should know...

Oracle Porn 11-29-2003 11:41 AM

bump

directfiesta 11-29-2003 11:43 AM

Quote:

Originally posted by Oracle Porn


not a zip file..
a cgi or a php file

cgi should be in a cgi-bin. Permissions protect what the script is allowed to do...

If you want to be the only one to use that cgi, create a new folder, put the file in that folder, protect it with .htaccess and make sure you configure Apache to allow execution of a cgi in another folder than cgi-bin.

:2 cents:

ldinternet 11-29-2003 11:46 AM

Like this?

www.nastydollars.com/stats.htm

Oracle Porn 11-29-2003 11:46 AM

Quote:

Originally posted by directfiesta


cgi should be in a cgi-bin. Permissions protect what the script is allowed to do...

If you want to be the only one to use that cgi, create a new folder, put the file in that folder, protect it with .htaccess and make sure you configure Apache to allow execution of a cgi in another folder than cgi-bin.

:2 cents:

If I move that cgi in another folder ill have to modify fuckload of other pages... its next to impossible

Oracle Porn 11-29-2003 11:47 AM

Quote:

Originally posted by ldinternet
Like this?

www.nastydollars.com/stats.htm

yes

Matthew 11-29-2003 11:53 AM

.htaccess

PHP Code:

<Files fileyouwanttoprotect.php>
AuthUserFile /www/htpasswds/.htpasswd
AuthName 
Protected
AuthType Basic
<Limit GET>
require 
valid-user
</Limit>
</
Files

like that :Graucho

edit.. damn how to insert these less then ang greater then signs..

so I just used php tag.. it's not a php *OBVIOUSLY*

IntenseCash 11-29-2003 12:15 PM

I have a php script where I can protect just the one file, or anything behind it. have to enter a user and pass.


All times are GMT -7. The time now is 10:38 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123