Title: Encoding CF7 Shortcode
Last modified: May 24, 2020

---

# Encoding CF7 Shortcode

 *  Resolved [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * (@wp-henne)
 * [6 years ago](https://wordpress.org/support/topic/encoding-cf7-shortcode/)
 * Hello Ironikus,
 * i get a lot of spam on a contact form and i don’t manage to trick the spammers.
 * Honeypot and quiz do not help (I would like to avoid recaptcha).
    Now I have 
   tried an IP blocker which only controls the form via short code – but this does
   not bring the desired effect, because the form is delivered and is only “hidden”–
   as far as you can see in the source code and my understanding.
 * So the next step: Your encoder. But
 * `[eeb_protect_content protection_text="Use Javascript, to see the form." method
   ="rot13"][cf7form cf7key="contact"][/eeb_protect_content]`
 * does not work because the encoder does not decode the shortcode.
 * My environment: WP Fastest Cache (disabled for the page in question) and Elementor.
   The shortcode of CF7 would then sit inside a text field of Elementor. This works
   perfectly for mail/phone – so it should also work from that direction. Your encoder
   would have to deliver the CF7 shortcode – so I have no idea how this is technically
   possible.
 * Thank you again!
    Henry

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [6 years ago](https://wordpress.org/support/topic/encoding-cf7-shortcode/#post-12886225)
 * Hey [@wp-henne](https://wordpress.org/support/users/wp-henne/) – thank you a 
   lot for your message.
    I just checked and there are some possibilities, but it
   would require quite a bit of custom code. To avoid that, here’s what I will do:
   For our next version, I will launch another attribute for the shortcode, which
   allows you to execute shortcodes before they are protected. Would this solve 
   your issue?
 *  Thread Starter [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * (@wp-henne)
 * [6 years ago](https://wordpress.org/support/topic/encoding-cf7-shortcode/#post-12886839)
 * Hello [@ironikus](https://wordpress.org/support/users/ironikus/),
 * great! With my knowledge of the shortcodes, it’s exactly what the solution should
   be.
    If you need a beta tester, I am happy to support you!
 * Have a nice day!
 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [6 years ago](https://wordpress.org/support/topic/encoding-cf7-shortcode/#post-12894187)
 * Hey [@wp-henne](https://wordpress.org/support/users/wp-henne/) – thank you a 
   lot for your answer and your efforts, we highly appreciate that! 🙂
 * I just created a demo version for you, which you can download here: [https://www.dropbox.com/s/byw3lnkq289gnqt/email-encoder-bundle-wp-henne.zip?dl=1](https://www.dropbox.com/s/byw3lnkq289gnqt/email-encoder-bundle-wp-henne.zip?dl=1)
 * This version adds a new parameter to the shortcode called **do_shortcode**. Simply
   set it to **yes** and we will execute shortcodes before that.
 * Here is an example based on your info:
    [eeb_protect_content protection_text=”
   Use Javascript, to see the form.” method=”rot13″ do_shortcode=”yes”][cf7form 
   cf7key=”contact”][/eeb_protect_content]
 * Since we really appreciate your effort, feel free to check out the foggy.email
   integration for this plugin.
    If you are interested in that, I’m happy to give
   you a free premium license. 🙂
 *  Thread Starter [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * (@wp-henne)
 * [6 years ago](https://wordpress.org/support/topic/encoding-cf7-shortcode/#post-12896173)
 * Thank You [@ironikus](https://wordpress.org/support/users/ironikus/)!
 * I immediately tested.
 * Yeah! Party time!
 * I am sure that this little addition will be a revolution in the fight against
   SPAMMERS.
 * I will test the next days at several websites, where I also have other form plugins
   in use. Then you’ll get a tested compatibility list for the rollout of the upcoming
   version.
 * Thank you very much for the fast beta version!
 * I am honored by your invitation to foggy.email and would be happy to write to
   you about your website. Thousands of thanks.
 *  Thread Starter [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * (@wp-henne)
 * [6 years ago](https://wordpress.org/support/topic/encoding-cf7-shortcode/#post-12927906)
 * Hello [@ironikus](https://wordpress.org/support/users/ironikus/)
 * I am pleased to confirm the following compatibility/function
 * I have tested successfully:
    - Encoded CF7 within Elementor (text, shortcode and other content elements)
    - Encoded CF7 within “Ultimate shortcodes”
    - Encoded CF7 within “Ninja Kick”
    - Encoded CF7 within “Floating Contact Button”
    - Encoded Formidable Form lite
    - Encoded Ultimate Member Forms
    - I am still trying to find a solution for the Mailpoet forms.
    - For all other readers:
       Please take care to use the right quotation marks 
      inside the shortcode. If you don’t see the content of the form, the quotation
      marks are probably wrong.
    - `[eeb_protect_content protection_text="Use Javascript, to see the form." method
      ="rot13" do_shortcode="yes"][cf7form cf7key="contact"][/eeb_protect_content]`
 *  [Ironikus](https://wordpress.org/support/users/ironikus/)
 * (@ironikus)
 * [6 years ago](https://wordpress.org/support/topic/encoding-cf7-shortcode/#post-12933001)
 * Hey [@wp-henne](https://wordpress.org/support/users/wp-henne/) – thank you a 
   lot for your amazing feedback and the effort you put in!
    I will soon launch 
   a new update, including this fix.
 * Regarding foggy.email: Feel free to just sign up for the free version and let
   me know once you have done it so I can assign a permanent upgrade for you. 🙂
 *  Thread Starter [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * (@wp-henne)
 * [6 years ago](https://wordpress.org/support/topic/encoding-cf7-shortcode/#post-12936845)
 * Hello [@ironikus](https://wordpress.org/support/users/ironikus/),
 * Mailpoet works with Encoder! Didn’t see the shortcode ([https://wordpress.org/support/topic/real-shortcode-without-gutenberg/](https://wordpress.org/support/topic/real-shortcode-without-gutenberg/))
 * foggy.email: I send you there more.
 * Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Encoding CF7 Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/email-encoder-bundle/assets/icon-256x256.png?rev=2056506)
 * [Email Encoder - Protect Email Addresses and Phone Numbers](https://wordpress.org/plugins/email-encoder-bundle/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-encoder-bundle/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-encoder-bundle/)
 * [Active Topics](https://wordpress.org/support/plugin/email-encoder-bundle/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-encoder-bundle/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-encoder-bundle/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [WP-Henne](https://wordpress.org/support/users/wp-henne/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/encoding-cf7-shortcode/#post-12936845)
 * Status: resolved