Jump to content

Archived

This topic is now archived and is closed to further replies.

skatermike21988

Logging Users I.P???

Recommended Posts

ok in my memebres area i want to log users i.p's.
reason being if they abuse their privelages they will then get a warning diplayed first. If they continue they will be banned from my site.

How would i have it log peoples i.p?

Share this post


Link to post
Share on other sites
I'm assuming if you need to log IP's then you are already familiar with PHP and SQL and databases, (adding and retrieving)...and that all that you require is a way to get thier IP.

$UsIP=$_SERVER['REMOTE_ADDR'];


Just insert $UsIP, (or whatever variable you name it), into the appropriate table / field.

hope that helped

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.