Script URL: http://tideswellmvc.co.uk/gbook/gbook.php
Version of script: 1.7
Hosting company: Zen Internet
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: "IP in approval e-mail"
Write your message below:
When I'm deciding whether to approve an entry in the guest book, it would be useful to know where the entry had come from. The e-mail address can be almost anything, but the IP is harder to spoof.
I changed from a different guest-book script to get the moderation feature, because I was getting several entries a day from someone in Poland with a dynamic IP address and more-or-less random e-mail address. If I knew the IP source of a guest-book entry before approving it I could look it up and check whether it was coming from that same ISP.
Good script, by the way - thanks!
Source address in approval e-mail?
-
- Posts: 2
- Joined: Tue Sep 28, 2010 4:55 pm
Source address in approval e-mail?
Rgds
Peter
Peter
Re: Source address in approval e-mail?
Open gbook.php in Notepad and just below line add
That should do the trick.
Code: Select all
$message.= "$lang[t19] $url\n";
Code: Select all
$message.= "IP: ". $_SERVER['REMOTE_ADDR'] ."\n";
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
-
- Posts: 2
- Joined: Tue Sep 28, 2010 4:55 pm
Re: Source address in approval e-mail?
I'll try it - thanks!Klemen wrote:Open gbook.php in Notepad and just below lineaddCode: Select all
$message.= "$lang[t19] $url\n";
That should do the trick.Code: Select all
$message.= "IP: ". $_SERVER['REMOTE_ADDR'] ."\n";
I'd tried something like it but I didn't have the right syntax; I'd have needed a few hours to work out the detailed structure of the code to get to the right answer.
Again, many thanks.
Rgds
Peter
Peter