4 How to remove active links in blog comments: full

Admin 12.31
4 How to remove active links in blog comments: full -
4 How to remove active links in blog comments: Full - Link active that we leave in blog comments as a live link, it could be an entry point for spammers to put links that lead to their blog or website, they put an active link in the comments for a particular purpose, in general, in order to get baclink of the site commented upon, a lot of the behavior of the commentators in the comments, there is relevant there are just nyepam with just commented perfunctory without nothing to do with the content of the article, if it finds such comments should we remove them directly.

like the comment Sepam other blogs that we let publish an active link is generally used as the entrance of spammers to place an active link hers, and usually comment that they are not qualified and mostly irrelevant to the content of the articles at all, therefore, to avoid things that spam like that, the better an active link on the comments we disable, remove, remove, turned off or modified so that it complies with our want.

the following illustrative examples of laying a live link in the comment:

Peletakan komentar dengan link aktif



the result will be as shown below:


komentar dengan link hidup



How to remove active links in blog comments

Some alternative modifications we can make to disable and turn off the active link like that, among which :

# 1. Eliminate or hide active link so it does not seem
# 2. Deadly Link active as a? Text only
# 3. Delete the contents of comments that contain an active link and replace it with a text containing a certain message
# 4. Replacing an active link with the text specified without having to remove the contents of comments


In this article we will try several alternatives for modifying the active links in comments by using CSS, JQuery and Javascript pure or pure javascript,

1. eliminate the active links with CSS


eliminating the active links with css intention is to create a link does not appear in the eyes of visitors, this method is not recommended because it removes the link from the visitor's eye yet can still be read by browsers and search engines, search engines still consider in the comments still contain live links.

Put the following code before the code ? * /]]]]>
#comments pa {display: none! important;}

The result will be as shown below:


menghilangkan link hidup pada komentar


In the eyes of visitors link does not appear but in the eyes of search engines that link is still readable, and how this is actually a less effective way to turn off the active links in comments.

2. Changing the active link to text only


How this is to replace any active link found in the comments into a text only and is not an active link, we can choose to use jquery or by using pure javascript, the following code could be used:


a. Using JQuery:

To use jquery you are required to load the first library jquery, following the script load libaray jquery:
");
Then enter this code below:
Put the above code before the code ? ?

The result will be like the image below:


mengganti link aktif menjadi non aktif


b. using Pure Javascript:

for the above methods, you can use pure javascript, so no need to load jquery library, as follows:

The result will look like the demo shown below:

Memodifikasi link aktif menjadi tidak aktif

3.?Menghapus content of the comments and replace


in the following example we will try to remove the contents of comments that contain an active link and then replace it with a text in the form of a special message:


the following script uses Javascript code pure (pure javascript), please put the following code before the code? ?
Please change text ? red ? with the text you want , the above example would menghasiltan display as shown below:


menghapus pesan link aktif dan diganti dengan pesan khusus




4. Changing the active links with a particular text.


the following script is used to disable and replace any active link found in the comments to specific literary as desired, without deleting the contents of comments:


the following script uses Javascript code pure (pure javascript ), please put the following code before the code ? ?

Please change the text? red ? text that you want, the above example will menghasiltan display as shown below:

Mengganti link aktif dengan pensan khusus


the words "It's an active link" is text a special message that we insert replaces the active links in these comments and it is not a link and can not be clicked.


Likewise tutorial that I can share about 4 ways to delete an active link on a blog comment : complete, good luck and good luck.
Previous
Next Post »
0 Komentar