Tagged: cloudflare, email
-
AuthorPosts
-
March 26, 2015 at 5:19 pm #418642
Hi there,
I have had email Obfuscation enabled on my site for around a year, for some reason it is breaking the emails on any new work I have done on my site – old email links still work. On new or edited emails when a viewer attempts to click – it now directs them to a default Cloud Flare message telling them to enable javascript – which doesn’t fix/isn’t the problem. I have attached a page as an example. I like the feature but don’t know a way to fix this problem other than disabling the feature. This seems to be a new development – could it be a result of a recent update?
Thanks,
KimMarch 27, 2015 at 5:45 pm #419495Hi Kimberlyjo!
I see a javascript error on your site which is probably causing the problem.
How does it work? Is it a shortcode your using? Paste the code here and we’ll take a look.
Best regards,
ElliottMarch 27, 2015 at 6:10 pm #419515Hi Elliott,
It isn’t a short code – at least I don’t think so…It’s a feature I can enable in CloudFlare dns settings which encrypts email addresses while keeping it visible to humans. Here is the information from the CloudFlare site. thank you for your help. Kim
…………….How do I know if email address obfuscation is working?
1. Make sure that the feature is “On” on your CloudFlare settings page.
2. Open a second browser window and find the page on your site where an email address is displayed to humans.
3. Look at ‘view source’ and look for the area with the email address. You will see that the simple email address is encrypted so bots can not harvest it. (Tip: If you have a full page of html, you can easily sort through the content by searching for @. You shouldn’t find an @ for the email address that was encrypted)If you would like to see what CloudFlare has done to the email, just search (in the source code) for cloudflare.com. Just below/after that link is the encrypted email address.
Scenarios where email addresses don’t scrambleThere are certain scenarios where the email addresses are not obfuscated to avoid breaking websites including:
In attributes of html tags
Inside certain other html tags such as:`*script tags : <script></script>
*noscript tags : <noscript></noscript>
*html comments : <!– –>
*textarea tags : <textarea></textarea>
*xmp tags : <xmp></xmp>
*head tags : <head></head>`Any page that does not have a MIME type of “text/html” or “application/xhtml+xml”
Added on June 12, 2011: You can also prevent CloudFlare from obfuscating emails by adding comments within the HTML code for the page. The comments to use are <!–email_off–> <!–/email_off–>. Any email addresses between the opening and closing comment tags will be displayed to the user exactly as written in the original HTML code.
If an email address is not being replaced and it doesn’t fall into one of these categories, contact CloudFlare and they’ll look into the scenario.
On/Off
If you switch the toggle from on to off, or vice versa, the change will take 15 seconds to propagate through the system. You do not need to refresh the page.
Requirements
A page should have a MIME type (Content-Type) of “text/html” or “application/xhtml+xml” for the email obfuscation to happen. For instance, if you’re doing some ajax calls, and wish to return email addresses in a JSON format, make sure your webserver returns a type of “application/json”March 29, 2015 at 11:08 pm #420126Hi!
Please update your theme version to the newest one: Enfold v3.1.2. and see if things get better.
We can’t really help you with cloudflare issues and would kindly ask you to contact their support: https://support.cloudflare.com/hc/en-us
As they know their features best, I think they will know how to help you.Let us know when you need some help with one of our themes.
Regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.