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)
-   -   php coders : need a little help (https://gfy.com/showthread.php?t=121370)

flashfreak 04-01-2003 03:30 AM

php coders : need a little help
 
How can I retrieve the username : password from a paysite members area in PHP?
I want to make a protection script, pls help.

Thanks!

Libertine 04-01-2003 03:33 AM

Ehm... what exactly do you mean by retrieve?
Retrieve it from the .htpasswd file, from a database or from the user?

nuclei 04-01-2003 03:44 AM

in php $_SERVER[PHP_AUTH_USER] will get you the username. You then would have to open the password file to get the "encrupted" password. If the password is stored in mysql somewhere then you can retrieve the unencrypted pass from there using the username you now have.

nuclei 04-01-2003 03:44 AM

Quote:

Originally posted by nuclei
in php $_SERVER[PHP_AUTH_USER] will get you the username. You then would have to open the password file to get the "encrypted" password. If the password is stored in mysql somewhere then you can retrieve the unencrypted pass from there using the username you now have.

nuclei 04-01-2003 03:45 AM

well hell, that was sposed to be an Edit to change encrupted to encrypted....


must be getting early or late

flashfreak 04-01-2003 09:07 AM

Quote:

Originally posted by punkworld
Ehm... what exactly do you mean by retrieve?
Retrieve it from the .htpasswd file, from a database or from the user?

if that helps: the members area is ccbill protected.. I don't know how they store the username : password...

flashfreak 04-01-2003 09:11 AM

Quote:

Originally posted by nuclei
in php $_SERVER[PHP_AUTH_USER] will get you the username. You then would have to open the password file to get the "encrupted" password. If the password is stored in mysql somewhere then you can retrieve the unencrypted pass from there using the username you now have.
thanks, I'l try that.. after all I don't need the password, since usernames are unique. I'm trying to protect the members area from password listing sites, so the user doesn't log from 3 different IPs in 3 hours... stuff like this...

sneaker 04-01-2003 09:31 AM

Look for a htaccess auth class module for php, there are a few out there try www.phpclasses.org

nuclei 04-01-2003 09:33 AM

Quote:

Originally posted by flashfreak

thanks, I'l try that.. after all I don't need the password, since usernames are unique. I'm trying to protect the members area from password listing sites, so the user doesn't log from 3 different IPs in 3 hours... stuff like this...


welcome.


All times are GMT -7. The time now is 01:00 PM.

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