How to Delete Active Links Automatically from a Blog or Website's Comments Section. Hello, buddy. . Today, I'll be talking about How to Automatically Delete Live Links from the Comments Section of a Blog or Website.
Table of Contents
Why should active links in the comment area be removed or removed?
The Best Method for Automatically Deleting Active Links in the Comments Section of a Website or Blog
Has the Link Remover Script been properly installed?
Why should the active links in the comments section be removed or taken out?
Here's why A link that is active in the comments section must be removed or eliminated.
While some active links may not have a detrimental effect on our blog or SEO, there are many active links that do have a negative impact, such as spam links that make it difficult for search engines to crawl our blog or website due to the abundance of broken links or error links. For this reason, many bloggers use automatic scripts to delete or remove live links in their blog's comment section.
How to Automatically Remove Active Links from a Blog or Website's Comments Section
Right now, I'm going to share How to Automatically Delete Active Links in a Blog or Website's Comments Section. The following are some of the methods for installing a script that removes live links from comments:
Sign in to Blogger
The first step is to log into Blogger using your Gmail account in order to learn how to instantly delete live links from the comments section of a blog or website.
install the code
Second, you may add code to remove active links automatically from the blog or website's comment section.
Select "Theme" from the left-hand menu, then click "Edit HTML." After that, put the code script below directly above the code.
//
function blockLinks(parentID, children) {
The parent is the element identified by the parentID,
The parent element's child nodes are represented by the content.
for (var i = 0; i < content.length; i++) {
If the i-th piece of content has an tag in its innerHTML, then:
Active Link
}
} blockLinks('comments', 'p');
//]]>
Press "Save"
Is the Link Removal Script Installed correctly?
Please plant active links or anchor text in your own comment section to test whether the script to delete those active links has been successfully installed.
