getting apache username with php/python
-
Hi. I need to get the username of people when they log into a secure area of my website. (I want to do it in php, so i can output each login with an IP, people keep passing out the password, i want to see what logins have multiple IPs). Is there a way to do this in PHP or python? Im using apache with cPanel. Thanks. *.* cin >> knowledge;
-
Hi. I need to get the username of people when they log into a secure area of my website. (I want to do it in php, so i can output each login with an IP, people keep passing out the password, i want to see what logins have multiple IPs). Is there a way to do this in PHP or python? Im using apache with cPanel. Thanks. *.* cin >> knowledge;
Yes, you can authenticate users with PHP.
-
Hi. I need to get the username of people when they log into a secure area of my website. (I want to do it in php, so i can output each login with an IP, people keep passing out the password, i want to see what logins have multiple IPs). Is there a way to do this in PHP or python? Im using apache with cPanel. Thanks. *.* cin >> knowledge;
This is pretty simple. once you have verified that your user is logged in, you can find his ip from the $ip=$_SERVER['REMOTE_ADDR']; Now you can store this $ip in a database to keep track of your users. One glitch though, your users may want to access your site contents from different pcs the ip would change in this case. Also modem users get a new ip every time they log in. So dont just ban users who have multiple IPs Any tool is only as good as you can use it!! (http://www.pascalnet.tk)