Pages

Kamis, 20 Desember 2012

Menyembunyikan Alamat Email WordPress Anda Dari Spam Bots



Spambot pasti masalah besar untuk anda pengguna Wordpress. Berikut ini beberapa potongan  kode yang berguna untuk mencegah robot spam untuk mengscan email Wordpress dengan tujuan mengspamming. 




function security_remove_emails($content) {
$pattern = '/([a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4})/i';
$fix = preg_replace_callback($pattern,"security_remove_emails_logic", $content);
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 komentar

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

Posts RSSComments RSSBack to top
© 2011 SALAM SATU DATA SATU TUJUAN ∙ Designed by BlogThietKe
Released under Creative Commons 3.0 CC BY-NC 3.0