![Hotspotshield free limit](https://loka.nahovitsyn.com/29.jpg)
Alex Febru 12:33 Olsen, you are right, We just wanted to show how you can use this function, but there are certainly better it would be possible to create a filter function, which searches, while saving, through the comment if it has an email address included and converts them via antispambot.Too many ignorant folks put in their emails without thinking of the risk they are taking and then it becomes the responsibility of the blogger to edit and remove them.
#Wordpress email obfuscator code
I have it saved in my text editor to paste in when I need it.Ī Plugin makes it site wide, converting all emails in posts into anti-harvesting versions, but what I haven’t found and wish was built into the code is one that will obfuscate within comments. It kind of implies you have to, but I use this all the time. Obfuscate Email WordPress Plugin continues to work, at least for my blogs.Īlso, what isn’t clear in your post is that people can use the character entities as you have posted in the first example without having any special Plugins installed. Frank Febru 2:01 i think its better, when you copy this function in your Theme and add your quicktag with the Plugin AddQuicktag, thats easy.Is it possible to extend this function so it adds a quicktag “mail” to the editor? The best way IMHO is to either use images or to use javascript that “generates” the real email address, since harvesting scripts often can’t interprete javascript. I haven’t try the following, but using html_entity_decode() on the entire page first and then search for “mailto:”s would most likely also work. If using PHP, then just run html_entity_decode() on that antispambot’ed string and you have an email address in plain text. It’s pretty easy to find “mailto:” links on a page and when you have that, then you “know” the following should be an email address. The above might be slightly more obfuscated than plain text, but it wont help anything in the end. I fear that sometimes people underestimates what email harvesting scripts can do :(. It’s a bit old, but works fine with WP 2.7.1 There is a plugin called Obfuscate email that makes the same job for all email addresses printed in the blog. [sm an example, look at the source code of this page: This shortcode will be used to write in your post/page: This function belongs in the function.php of your theme folder: Kai had the cool idea to use shortcodes for this. You cannot use this function in a post or page unless you installed the EXEC-PHP Pluging. Our e-mail with antispambot in the source code looks like this:
![wordpress email obfuscator wordpress email obfuscator](https://img.themesinfo.com/i/1/775/twenty-eleven-best-free-wordpress-theme-f3hvb-m.jpg)
It doesn’t create a clickable mailto link. It is a kind obfuscator of the email address.
![wordpress email obfuscator wordpress email obfuscator](https://tobesuccessful.net/wp-content/images/2a0958e4357d5707e72a6e0516562a69.jpg)
A little-known feature in WordPress is antispambot() from the wp-includes/formatting.php.
![Hotspotshield free limit](https://loka.nahovitsyn.com/29.jpg)