WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 Dynamic Text Extension
obfuscate='on' not working? (4 posts)

  1. tharpa.osang
    Member
    Posted 2 years ago #

    I am using the plugin to put an email in a hidden field. even after adding the obfuscate='on' to the shortcode in the form, the email can still be seen by viewing source... isn't that what obfuscate='on' is supposed to obfuscate?? here is the code from my form:
    [dynamichidden dynamichidden-767 "CF7_POST key='addr' obfuscate='on'"]

    any idea why the email address isn't obfuscated?

    http://wordpress.org/extend/plugins/contact-form-7-dynamic-text-extension/

  2. tharpa.osang
    Member
    Posted 2 years ago #

    In looking at the plugin code it appears that the obfuscate option is not available for POST or GET variables.

    I then tried to add the form to the actual post... the form then used this shortcode:

    [dynamichidden bioemail "CF7_get_custom_field key='contact'  obfuscate='on'"]

    the form shows up, but unfortunately the email can still be seen via view source. What exactly is the obfuscate='on' option supposed to do??

  3. tharpa.osang
    Member
    Posted 2 years ago #

    A bit more clarity.... I had been viewing code using "inspect element" in Chrome... In looking at the code this way, I could read the email address. In looking at raw source, however I see the obfuscation. It can stop some bots from harvesting emails, but not humans...

    I modified Chris' CF7_POST code so that it could take the obfuscate='on' flag if it was set, but what i would really like to see is a way to filter the value AFTER the user hits the send button, but before CF7 gets it . But after looking at the code, I'm guessing that it would require modifying both CF7 and CF7_DTX (since CF7_DTX essentially uses shortcodes inside of shortcodes...)

    At the end of the day, I would like to be able to send a single form dynamically to many people, without exposing their email address to bots OR humans.... passing parameters to the server to allow the lookup and insertion of the email address after the form is posted but before the mail is sent.

  4. Luke Rumley
    Member
    Posted 1 year ago #

    Wow, thanks for the Chrome Inspector find, @tharpa.osang - I was pulling my hair out!

    Not sure if this will help you 10 months later, but I used Advanced Custom Fields plugin to create a custom field called email_address on my staff bios, then use [dynamichidden ToEmailAddress id:to-email "CF7_get_custom_field key='email_address' obfuscate='on'"] to pull it into my one form that sends to all staffers.

    So the obfuscation is not the same as encryption, but it works well enough for what I am trying to achieve.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic