Solved

Detecting IP and sending to webmaster

Posted on 1999-01-16
5
164 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
ID: 1845370
What kind of server are you on?

0
 
LVL 3

Author Comment

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

Expert Comment

by:jhurst
ID: 1845372
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
ID: 1845373
Both, actually. They are more prevalent in the guestbook.
0
 
LVL 8

Accepted Solution

by:
jhurst earned 30 total points
ID: 1845374
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

791 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