As I just used this snippet from Aldus for my own website, i think it comes in handy to post it in there. It was originally posted by Aldus in the german forum. I asked him if i could post it here and in the Dutch forum, and that was ok.
What does it do?
If some one sends you a message by using the form module on your website, you will see on the bottom the IP of the user who send you this. Comes in handy by blocking different IP's on your site, or for webshops as in NL this can work in advance for you if some one orders something by the website.
How to Install?
Copy the code below into rule 392 of view.php in /modules/form folder for your WebsiteBaker site.
// Now send the email
* @version 0.1.0
* @build 1
* @date 2008-08-15
* @author aldus
* @state @dev
* Adding the request ip to the e-mail body before sending.
* @note If you are in the need of additional informations
* you can also add other $_SERVER vars like $_SERVER['HTTP_USER_AGENT']
$email_body .= "\n\nIP: ".$_SERVER['REMOTE_ADDR'];
If there are any questions just let it know here!