How To Remove Spam Comment Automatically On Blog - KhalistaBlog -->
Skip to content Skip to sidebar Skip to footer

How To Remove Spam Comment Automatically On Blog

How To Remove Spam Comment Automatically On Blog - Certainly already been thought about How the hell how to remove live links (spammers) on our blog? maybe for those who have long known blogs would already know how to deal with spammers that naughty in this way, but there is no harm if I try to share about how to remove automatic spam on your blog comments, of course to petrify us who do not know how to remove Spam.

How To Remove Spam Comment Automatically On Blog

Actually to remove delete spam comments automatically on blogs you can do in 2 ways, that is by deleting spam with css and delete active link comments with javascript, but it is recommended to delete spam comments using the java script. Why is that ? because if we delete the comment spam with css, the active link can still be read by the browser, then its altenatif using javascript.

For more details, and how to do it, we can see some steps from the following two ways.

1. How to Remove Auto Spam Comments using Css

a. First go first to template editor [edit html]
b. Then Put the following Css right above the code ]]> </b:skin> or </style>
.comment-content a {
display: none;
}
c. Click Save Template [by installing the css is now an active link / spammers will automatically delete by itself]
2. Delete Active Link Comments Automatically with Javascript

a. Just like before, go to template editor first
b. Then find the code </body> [this code is usually located at the bottom of the chapter]
c. Install the following javascript just above the code </body> earlier
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script>
$('.comment-content a[rel$=nofollow]').replaceWith(function(){return ($(this).text());});
</script> 
d. Finally save the template and see the results

That's the tips on how to solve the active link spammers by automatically removing them, to test them you can put <a href="http://name-blog.blogspot.com"> Name Your Blog</a> in your blog comments, if the link is active is lost, then bearti you have successfully applied tutorial to Delete Spam Comment Automatically on Blog. Good luck.

Post a Comment for "How To Remove Spam Comment Automatically On Blog"