Forum Statistics

  • Forum Members: 4,502
  • Total Threads: 3,657
  • Total Posts: 1
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 07-07-2009, 07:35 AM   #1 (permalink)
 
Status: Newbie
Join Date: Jul 2009
Posts: 2

Rep Power: 12 kanch33 is on a distinguished road



Default Capturing IP address & blocking IP address

I'm using a php script for my web site which has registration, log-in, etc.
When I asked how I might be able to capture the registrants IP address upon registration, I was given this code and this advice:

Code:
$userip = $_SERVER[REMOTE_ADDR];
mysql_real_escape_string($userip);
"Remember when you store these values in the database to use these two functions INET_ATON() and INET_NTOA(). One is for inserting the IP and one is for extracting it."

I don't know what INET_ATON() and INET_NTOA() are, but my goal is to be able to have a users IP address just in case he spams my site, then he can be blocked, based on the thinking that typically one user has one computer.

can someone tell me how I can block an Ip address?
Any thoughts/replies/suggestions will be welcome.
__________________
Weight loss pills Film
kanch33 is offline Add Infraction for kanch33   Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.5.0 RC2