Solved

Detecting IP and sending to webmaster

Posted on 1999-01-16
5
161 Views
Last Modified: 2010-04-09
I run a local website and often I get death threats and unnecessary messages which constitute notification of the ISP. I would like to know how I can set a cookie when the guestbook is signed (if necessary), somehow find the IP, and send the name entered in the "Name" field with the IP of the visitor to my email. I would really like just a long bit of code that would do this that I can put in the page used for signing. Please help, this is urgent. I'm giving all of my points to whoever can do this.
Thanks,
SuperMario
0
Comment
Question by:SuperMario
  • 2
  • 2
5 Comments
 
LVL 10

Expert Comment

by:MasseyM
Comment Utility
What kind of server are you on?

0
 
LVL 3

Author Comment

by:SuperMario
Comment Utility
It is run on Angelfire (I believe they allow CGI?)
0
 
LVL 8

Expert Comment

by:jhurst
Comment Utility
How are the threats being passed to you?  Are they being posted into a guestbook or sent to you as eMail?
0
 
LVL 3

Author Comment

by:SuperMario
Comment Utility
Both, actually. They are more prevalent in the guestbook.
0
 
LVL 8

Accepted Solution

by:
jhurst earned 30 total points
Comment Utility
Well, if the problem is eMail you should know where it came from but you can certainly look at the headers and get a pretty good idea.  

In the guestbook, it would seem unlikely that the guistbook does not record ip-addresses.  If it is written in perl as most of them are then you just need to look at and record the environment variable:
REMOTE_ADDR

If this I am missing something then please post the url of the page so we can understand your problem a little better.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now