Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other
Author Message
southern
Client


Joined: Jan 29, 2004
Posts: 591
Location: Texas

PostPosted: Mon Mar 10, 2008 1:01 pm Reply with quote

I came across this interesting article about logging with PhP .htaccess and ..htpasswd Basic auth login attempts Only registered users can see links on this board! Get registered or login!
I'd like to add this to my admin tools but I'm not sure how to set it up so I'd appreciate insite.

_________________
Computer Science is no more about computers than astronomy is about telescopes.
- E. W. Dijkstra 
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Mon Mar 10, 2008 4:50 pm Reply with quote

Since I am not familiar with it (until now) I don't think I can offer any insight beyond what the article does. Is there something specific that you have a question?
 
View user's profile Send private message
southern
PostPosted: Mon Mar 10, 2008 5:17 pm Reply with quote

Specific? Well, the part
Code:


$password=base64_decode(str_replace('Basic ','', $_SERVER['HTTP_AUTHORIZATION']));
echo $password;

below
Quote:

This is the php code you can use to show the decrypted password that was sent by the client.

would go where. I think this is a good idea and I'm gonna try and set it up.
 
Raven
PostPosted: Mon Mar 10, 2008 5:27 pm Reply with quote

According to the article

Quote:
1. create a file called login.php in your /cgi-bin/ and copy to /
 
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Mon Mar 10, 2008 5:36 pm Reply with quote

If you have access to webalizer (stats program), I believe it also logs logins and passwords for you.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
southern
PostPosted: Mon Mar 10, 2008 6:29 pm Reply with quote

OK thanks Raven

I have access to webalizer, Gremmie, I just like to fool around with .htaccess and the like.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other

View next topic
View previous topic
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©