Monday, August 10, 2015

How To Hide Comment Spam On Blogs

Admin     8/10/2015     No comments

Preventing against comment spam has become the most frustrating job for a blogger, especially when you don’t have enough money to hire a comment moderator in which trashes the junk e-mail comments while publishing all of the useful comments to your blog. Obviously you don’t wish to delete your all comments just for the health of few spam ones? Since, Blogger doesn’t have a real-time comment junk e-mail detection plugin the reason why we have for you to implement some techniques to make certain that spam comments are steering clear of our blogger site. Today, in this short article, we will show you How to On auto-pilot Remove Spam hyperlinks from Blogger Comments.
Search engines are hard ended by and they know what you are referring is useful and what they should ignore. By removing spam buddies from comments considering the promote occurring of CSS could not without help hide those connections but would trap search engines from indexing them too.

Metode 1. Use CSS code

Blogger >> Template >> Edit HTML >> Find for Skin Tag and just above it paste the following code:

 .comment p a {
display: none;
} 

Method 2: Use jQuery To Remove Links:

Some people might not seek the above process they might argue that the spam association is yet there, because we have just conceal it subsequent to the sponsorship of a easy display:none; CSS. Search for starting </body> tag and paste one of the JavaScript code below just above it :

<script type='text/javascript'> jQuery(document).ready(function(){ jQuery("#comments p").find("a").replaceWith("<span> Please No Spam for Better Blog! </span>"); }); </script> 

Or u may used this...

<script type='text/javascript'>
//<![CDATA[
function blockLinks(parentID, children) {
 var parent = document.getElementById(parentID),
 content = parent.getElementsByTagName(children);
 for (var i = 0; i < content.length; i++) {
  if (content[i].innerHTML.indexOf('</a>') !== -1) {
   content[i].innerHTML = "Ohhh <mark>Active Link</mark> No Spam!";     }
 }
}
blockLinks('comments', 'p');
//]]>
</script> 

Also this one...

<script type='text/javascript'>
//<![CDATA[
function blockLinks(parentID, children) {
    var parent = document.getElementById(parentID),
        content = parent.getElementsByTagName(children);
    for (var i = 0; i < content.length; i++) {
        if (content[i].innerHTML.indexOf('</a>') !== -1) {
            content[i].innerHTML = content[i].
innerHTML.replace(/<a[^>]*>.*<\/a>/g, " <mark>No Active link Here</mark> ");            content[i].className =         }
    }
}
blockLinks('comments', 'p');
//]]>
</script> 

Once anything is finished, Save the template and now you can nap when excruciating not quite comment spam. Whenever, a enthusiast will depart a link into his comment and will be considered as spam and the script will automatically cut off it within seconds.

Good luck...


Stop Spam here
 How To Hide Comment Spam On Blogs

,

0 comments :