Jump to content


Photo

Password Protected Directories Help


  • Please log in to reply
7 replies to this topic

#1 X74SY

X74SY
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 19 August 2006 - 09:36 AM

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! 




#2 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 19 August 2006 - 10:37 AM

If it's just Apache's directory view, then I don't think you can. You could read the log file though.

#3 X74SY

X74SY
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 19 August 2006 - 03:50 PM

If it's just Apache's directory view, then I don't think you can. You could read the log file though.


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  :-[



#4 litebearer

litebearer
  • Members
  • PipPipPip
  • Advanced Member
  • 2,357 posts
  • Locationwhite lake michigan

Posted 19 August 2006 - 07:46 PM

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

all the brothers were valiant!

[br][br]The truely intelligent people are not those who create the dots; rather they are they ones with the ability to connect the dots into a coherent picture

#5 X74SY

X74SY
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 20 August 2006 - 03:45 AM

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


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

#6 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 20 August 2006 - 03:56 AM

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.

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#7 X74SY

X74SY
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 21 August 2006 - 02:19 AM

I wouldn't try to do this just by recording the users ip because if they have a dynamic ip it will change perodicaly.


I know that, I only suspend the account if it's being logged in by 3 different IP ranges.  :(

Ok are you saying that people are sharing there login identy? You can possibley prevent this with using cookies, sessions and recording their ip.


Do you know a free php script that can do that? and/or can you help me make one?  ;D

#8 X74SY

X74SY
  • New Members
  • Pip
  • Newbie
  • 6 posts

Posted 22 August 2006 - 05:58 AM

Help/Suggestions Please!?  :(




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users