WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Contact Form 7] Can you add sender IP to email that gets sent? (4 posts)

  1. TrishaM
    Member
    Posted 4 years ago #

    I am looking to use Contact Form 7 to replace another contact plugin in order to use the CAPTCHA feature - it works, but I would like to be able to also capture and send as part of the email the sender's IP address, as my current plugin does.

    The reason is that I periodically get hit with tons of contact form spam, almost always from a single IP, when this happens I [temporarily] modify my .htaccess file to deny access from that IP or domain. This is very helpful to keep my server and inbox from getting overwhelmed.

    Many thanks for any advice on how I can modify this plugin to include sender IP in the message body of the email.

  2. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    You can get it by inserting [wpcf7.remote_ip] into mail template.

    http://ideasilo.wordpress.com/2008/11/11/contact-form-7-181/

  3. TrishaM
    Member
    Posted 4 years ago #

    Fabulous - thanks so much!

  4. VinceSamios
    Member
    Posted 4 years ago #

    If you've got an older version of CF7 this post might be useful. Adding IP Address to CF7 V1.9.3

Topic Closed

This topic has been closed to new replies.

About this Topic