Tuesday, September 20, 2016
Cara Hapus Otomatis Komentar Spam di Blog
Cara Hapus Otomatis Komentar Spam di Blog

Kode anti-spam comments ini ampuh membasmi komentar berisi link hidup/aktif yang biasa disebar oleh blogger lain, termasuk para penjual obat, admin blog judi online, taruhan online, dll.
KODE ANTI KOMENTAR SPAM UNTUK BLOGGER
(Simpan di atad kode <body> atau </head>)
(Simpan di atad kode <body> atau </head>)
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type=text/javascript>
jQuery(document).ready(function(){
jQuery("#comments p").find("a").replaceWith("<mark>Spam Detected!</mark> Link aktif otomatis terhapus!!!");
});
</script>
Catatan:
<script type=text/javascript>
jQuery(document).ready(function(){
jQuery("#comments p").find("a").replaceWith("<mark>Spam Detected!</mark> Link aktif otomatis terhapus!!!");
});
</script>
Catatan:
- Kode warna biru (jQuery) tidak usah dimasukkan jika sudah ada di template.
- Anda bisa ganti kata-kata yang warna merah dengan versi Anda.
Anda bisa mengetes hasil Cara Hapus Otomatis Komentar Spam di Blog atau kode anti-komentar spam ini dengan komentar menyertakan link hidup. Lihat contohnya di kolom komentar About.
Kode untuk menyertakan link aktif dalam komentar:
Nice info gan, kunbalnya ya <a href=http://newjohnywuss.blogspot.com>NJW</a> !!!
Lihat di kolom komentar di bawah ini, link hidup NJW dalam kode di atas akan lenyap dengan kode anti-komentar spam di atas.
APA ITU KOMENTAR SPAM?
Comment spam is a term used by spam blacklist servers such as Project Honey Pot to refer to a broad category of spambot or spammer postings which abuse web-based forms to post unsolicited advertisements as comments on forums, blogs, wikis and online guestbooks. Comment spam - Wikipedia, the free encyclopedia.
Available link for download