Spam, Spam, Spam is one of the problems often faced by bloggers. Spam is usually done in many ways, and one of them is by constantly commenting to put a link in it (Anchor Text).
Spam can be prevented by moderate comments, meaning that when we put a blog visitors comments, we can easily decide whether comments are displayed or not. But still, there are visitors who deliberately put the link the link (anchor text) in the comments. Therefore ditutorial this time I will give way Automatically Delete Spam Comments. This way not only will remove comments that are already spam you show, but of course will delete spam comments later.
To do so, we have two easy ways namely:
1. Using CSS: CSS will be used to remove all comments that contain Anchor Text. Anchor Text is a word or phrase in it have placed a link, which when clicked will redirect to the URL address of a website. This CSS will remove the link and anchor text that is
2. Using jQuery: This changes the Anchor Text had become a word / phrase so common that can not be clicked.
Cool is not it? I own already implement it in order to make a spammer deterrent, especially when I re-activate this blog, I have removed more than 500 Comment Spam: s
Here's the tutorial:
A. How CSS
1. Log in to your Blogger account -> select Templates -> Templates in the menu, you select Customize (Customize) -> then you select the Advanced (Advanced) -> Now highlight the bottom and you will find the option Add CSS (Add CSS).
2. After you enter the CSS code below and if it is you save.
.comment-content a {
display: none;
}
B. How jQuery
1. Log in to your Blogger account -> select Templates -> then you select the Edit HTML.
2. In the HTML template, you press ctrl + f to speed up the search, and enter the code </ body> tag in the search box. After that you copy the following jQuery code:
<! - Stop Blog Comments http://www.spiceupyourblog.com ->
<! - Repost by http://www.heyblogger.net ->
<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>
<! - Repost by http://www.heyblogger.net ->
3. Place the copied code was above / before </ body>. And if it is click Save.
4. Done ! how do? very easy right? now you will quietly leave the blog you either wear moderation or not. Because spammers can not play bad again: D
0 Response to "How to Delete Comment Spam Automatically"
Post a Comment