Hi, is there a way to block certain countries from using the contact forms? and also include the ip of the sender in the email?
thank you,
Marcos
Hi, is there a way to block certain countries from using the contact forms? and also include the ip of the sender in the email?
thank you,
Marcos
To block certain countries from using your form, you'd have to use some sort of access control built into Apache. And you might not be able to ban entire countries, but can do it for large blocks of IP addresses. Here is an explanation of how to deny large blocks of IP addresses: http://www.webmasterworld.com/forum92/6459.htm
I did see this 3rd party service for banning by IP:
https://www.countryipblocks.net/
For including the IP address of the visitor who filled out the form, in your notification, add this merge tag to your {all_fields} notification area. It might look like this when you are done with your admin notification:
{all_fields}
Submitted from this IP address: {ip}
The "Client IP Address" is available in the merge tag drop down in your notification area.
Thank you! it works great!
Thank you for the update.