Forums

Sending the IP address

fredfitaire 11 Feb, 2012
Hello,

Is it possible to add, at the end of the email sent after a form validation, the IP address of the computer from which the form is sent ?
The aim is to blacklist some unwelcome visitors ...
Thanks😉
andypooz 11 Feb, 2012
If you add a hidden field to your form and use php to get the user's IP address then it will be sent along with all of the other data when the form is submitted. This means it'll be available to include in emails along with all the other data

If you're using the form wizard, just add the following to the 'default value' section in the hidden field panel:

<?php echo $_SERVER['REMOTE_ADDR']; ?>


Bear in mind that there are ways of getting around this by using proxies.

Andy
GreyHead 11 Feb, 2012
Hi fredfitaire,

The option is already there and turned on by default.

Bob
fredfitaire 13 Feb, 2012
Thanks GreyHead but I don't see where I can set this option (I'm running Chrono contact v3.2).

Andy, thanks for the tip. Tested on my form, works well, nice !
GreyHead 13 Feb, 2012
Hi fredfitaire ,

In ChronoForms v3 it's in the Email Setup Properties box.

Bob
This topic is locked and no more replies can be posted.