Showing posts with label otomatis. Show all posts
Showing posts with label otomatis. Show all posts

Tuesday, September 20, 2016

Cara Hapus Otomatis Komentar Spam di Blog

Cara Hapus Otomatis Komentar Spam di Blog


Komentar Spam di Blog
CARA mengatasi, menghilangkan, menyembunyikan, atau menghapus komentar spam, link aktif, link hidup, di komentar blog dengan memasang kode anti-komentar spam.
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>)
<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:
  1. Kode warna biru (jQuery) tidak usah dimasukkan jika sudah ada di template.
  2. 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

Read more »

Friday, August 26, 2016

Cara Membuat Link Otomatis di Postingan Blog

Cara Membuat Link Otomatis di Postingan Blog


Cara Membuat Internal Link & Eksternal Link Otomatis di Postingan Blog. Tanpa harus susah-payah secara manual membuat link di artikel. Contohnya, kata blog ini otomatis nge-link ke CB Blogger.

Cara Membuat Link Otomatis di Postingan Blog

KODE SEO SMART LINK
Simpan di atas kode </body>

<script type=text/javascript>
function smartLink(){
    this.keywdHref = new Object();
    this.add = function(keyword, href){
        if(keyword.substr(0,1) != &quot; &quot;){keyword = &quot; &quot; + keyword;}
        this.keywdHref[keyword] =  href;
    }
    this.createAnchor = function(){
        var objs = document.getElementsByTagName(&quot;div&quot;);
        for(var i=0; i&lt;objs.length; i++){
            var obj = objs[i];
            if(obj.className.indexOf(&quot;post-body&quot;)&gt;-1){
                var content = obj.innerHTML;
                for(var keyword in this.keywdHref){
                    var href = this.keywdHref[keyword];
                    var newstr = content.replace(keyword, &quot;&lt;a href=&#39;&quot;+href+&quot;&#39;&gt;&quot;+keyword+&quot;&lt;/a&gt;&quot;, &quot;gi&quot;);
                    obj.innerHTML = newstr;
                    content = newstr;
                }
            }
        }
    }
    this.startScript = function(){
        var onLoad = window.onload;
        window.onload = function(){
            if(onLoad){onLoad();}
            setTimeout(&quot;f.createAnchor()&quot;, 100);
        }
    }
}
</script>
<script type=text/javascript>
var f = new smartLink();
f.add(&quot;CB&quot;, &quot;http://www.contohblog.com/&quot;);
f.startScript();
</script>

JIKA ingin menambahkan kata kunci lainnya untuk otomatis link, tambahkan:

f.add(&quot;SEO&quot;, &quot;http://www.contohblog.com/&quot;);
f.add(&quot;Template&quot;, &quot;http://www.contohblog.com/&quot;);
f.add(&quot;Blogger&quot;, &quot;http://www.blogger.com/&quot;);

Available link for download

Read more »