X74SY Posted August 19, 2006 Share Posted August 19, 2006 Hello, Is there a FREE php script that I can get that will logs the (Name/IP/# of Logins/Last Logins/vistied/hits page etc.) of the users of my password protected directories? or any other (PHP/MySQL based) script that can help me know who has been sharing there logins to my password protected directories?Any help would be very much appreciated,Thanks! Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted August 19, 2006 Share Posted August 19, 2006 If it's just Apache's directory view, then I don't think you can. You could read the log file though. Quote Link to comment Share on other sites More sharing options...
X74SY Posted August 19, 2006 Author Share Posted August 19, 2006 [quote author=Daniel0 link=topic=104846.msg418453#msg418453 date=1155983876]If it's just Apache's directory view, then I don't think you can. You could read the log file though.[/quote]Yeah, but our logs gets rotated like every 6 hours... so It's very difficult to keep track on who has been sharing there logins :-[ Quote Link to comment Share on other sites More sharing options...
litebearer Posted August 19, 2006 Share Posted August 19, 2006 Simply create a table in which, at login, you store the following;--------------------$username (which you obviously have at this point in time)$their_ip (which you derive thus: $their_ip = $_SERVER["REMOTE_ADDR"];)$when_here (the timestamp for this visit: $when_here = time();)--------------------you could also get the browser type and version to store.Then periodically, run a short script to output the user_visits data Quote Link to comment Share on other sites More sharing options...
X74SY Posted August 20, 2006 Author Share Posted August 20, 2006 [quote author=litebearer link=topic=104846.msg418621#msg418621 date=1156016817]Simply create a table in which, at login, you store the following;--------------------$username (which you obviously have at this point in time)$their_ip (which you derive thus: $their_ip = $_SERVER["REMOTE_ADDR"];)$when_here (the timestamp for this visit: $when_here = time();)--------------------you could also get the browser type and version to store.Then periodically, run a short script to output the user_visits data[/quote]May I ask, where can I learn how to make my own custom username/IP tracking mechanism? and/or can you please (If possible) kindly help me make one? It doesn't need to be advance with a CP and all that, I just need a script that will log the IP and the username that was used to login to my private/members page, so that I could easily know who has been sharing there logins. (I'm losing a lot of bandwidth lol)Any help would be very much appreciated,Thanks! :D Quote Link to comment Share on other sites More sharing options...
tomfmason Posted August 20, 2006 Share Posted August 20, 2006 Ok are you saying that people are sharing there login identy? You can possibley prevent this with using cookies, sessions and recording their ip. I wouldn't try to do this just by recording the users ip because if they have a dynamic ip it will change perodicaly. Quote Link to comment Share on other sites More sharing options...
X74SY Posted August 21, 2006 Author Share Posted August 21, 2006 [quote author=tomfmason link=topic=104846.msg418773#msg418773 date=1156046168]I wouldn't try to do this just by recording the users ip because if they have a dynamic ip it will change perodicaly. [/quote]I know that, I only suspend the account if it's being logged in by 3 different IP ranges. :([quote author=tomfmason link=topic=104846.msg418773#msg418773 date=1156046168]Ok are you saying that people are sharing there login identy? You can possibley prevent this with using cookies, sessions and recording their ip.[/quote]Do you know a free php script that can do that? and/or can you help me make one? ;D Quote Link to comment Share on other sites More sharing options...
X74SY Posted August 22, 2006 Author Share Posted August 22, 2006 Help/Suggestions Please!? :( Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.