PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

block countries and sender ip?

  1. 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

    Posted 12 years ago on Thursday September 6, 2012 | Permalink
  2. 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.

    Posted 12 years ago on Thursday September 6, 2012 | Permalink
  3. Thank you! it works great!

    Posted 12 years ago on Monday September 10, 2012 | Permalink
  4. Thank you for the update.

    Posted 12 years ago on Monday September 10, 2012 | Permalink

This topic has been resolved and has been closed to new replies.