Determine Ip Address Of Pest


Recommended Posts

I have a friend who is getting harassing messages from a person. They are using this contact page. My understanding of web design is pretty week. Is their any way he could determine who, or maybe the ip of the computer that is filling out this form?

I was hesitant to post the contact page, but since this is a public web site, it seems acceptable

Link to post
Share on other sites

I'm a little confused here... Is that your friends website? or is someone using that website to contact your friend?

If it's your friends website, the best option is do a complete rewrite of the contact form using PHP.

With PHP, you can implement something like the following in the contact form script which will display the date, browser, ip address, and hostname. Of course, you do not have to use all of it, but only what you would like.

// additional (client) information
$body .= "\n\nAdditional (client) information:\n\n"
. 'Date = ' . date('Y-m-d H:i') . "\n"
. 'Browser = ' . HTTP_USER_AGENT . "\n"
. 'IP Address = ' . $_SERVER['REMOTE_ADDR'] . "\n"
. 'Hostname = ' . gethostbyaddr($_SERVER['REMOTE_ADDR']) . "\n";

Note: you might have to adapt that code slightly to make it work with your code.

B

Link to post
Share on other sites

Another way is to add a hit counter. I use RiteCounter and it lets you hide the counter on the page. But it gives all sorts of stats on who is hitting.

Link to post
Share on other sites
Another way is to add a hit counter. I use RiteCounter and it lets you hide the counter on the page. But it gives all sorts of stats on who is hitting.

That may be an easier solution then rewriting the webpage. I will check into that.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...