我們的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 即可!  
 
提示:預覽請見「關於」頁面!
