我们的WordPress网站一般为了访客方便发送邮件,会在网页中插入很多带有 mailto: 链接的邮箱地址,可是这些链接成为这些SPAM邮箱采集器的目标,所以今天畅想资源就来教大家如何使用 
教学
1、将下方代码添加到「布景函式库(functions.php)」的最底部 ?> 之前,然后点击 
| 1 2 3 4 5 6 7 8 9 | /* 使用 [email] 短代码防止SPAM邮箱采集器采集网站内的邮箱地址开始(由AREFLY.COM制作) */ function prevent_spam_email_shortcode($atts, $content = null){ 	if (!is_email($content)){ 		return; 	} 	return '<a href="mailto:'.antispambot($content).'">'.antispambot($content).'</a>'; } add_shortcode('email', 'prevent_spam_email_shortcode'); /* 使用 [email] 短代码防止SPAM邮箱采集器采集网站内的邮箱地址结束(由AREFLY.COM制作) */ | 
2、然后你将网页中的例如 <a href="mailto:info@arefly.com">info@arefly.com</a> 改为 [email]info@arefly.com"> 短代码来防止SPAM邮箱采集器采集网站内的邮箱地址
教学
1、将下方代码添加到「布景函式库(functions.php)」的最底部 ?> 之前,然后点击 
2、然后你将网页中的例如 <a href="mailto:info@arefly.com">info@arefly.com</a> 改为 info@arefly.com 即可!  
 
提示:预览请见「关于」页面!
