In this video, I'm sharing a really simple method I've been using across all my WordPress sites to protect my email from spambots and prevent email harvesting. This isn't just a trick; it's a reliable solution that has worked for me over the years.
I'll walk you through how to hide your email address in HTML so it looks completely normal to your visitors but remains hidden from malicious bots. This email obfuscation technique is easy to do and will help you securely display your email without compromising on user experience.
What you'll learn:
The simple code snippet I've been using for years
Step-by-step guide to adding this code to your WordPress site
Tips to further stop email scraping and enhance your website's security
Don't let spambots win!
If you find this video helpful, please give it a thumbs up 👍 and consider subscribing for more tips on WordPress things.
✘ https://x.com/iamkarolk
0:00 Intro
0:22 The problem explained
0:56 The solution
1:35 Step-by-step how to
3:21 Final thoughts
👇👇 THERE'S MORE! 👇👇
▬▬▬▬
❤️ Sub this channel: / @wpworkshophq
🌐 Find me at https://wpwork.shop/
▬▬▬▬
PARTNERS:
📰 Keep up with the latest WordPress news and in-depth stories at WPShout — your go-to resource for all things WordPress. https://bit.ly/4dVXGUp
🎯 Discover premium WordPress themes and insightful tutorials at Themeisle, designed to elevate your WordPress game. https://bit.ly/4dVWKzC
⚡️ Site slow? Optimize your images! Images often account for 80% of website weight. Optimole is a battle-tested solution to make them smaller and then deliver them through a global CDN. https://bit.ly/4dVWHUs
▬▬▬▬
CODE SNIPPET FROM THE VIDEO:
function email_encode_function( $atts, $content ) {
return antispambot($content);
}
add_shortcode( 'email', 'email_encode_function' );
▬▬▬▬
GEAR:
📸 Camera - Canon M6 Mark II: https://amzn.to/47l36Gc
👁️ Lens - Canon EF-M 32mm f/1.4 STM: https://amzn.to/4eapwfG
🎙️ Mic - Rode VideoMicro: https://amzn.to/3MGqkwN
▬▬▬▬
ℹ️ About: WP Workshop is your go-to hub for quick and easy WordPress tutorials.
#WordPress #spam #email