In daily website content operations, we often encounter situations where external links need to be referenced in articles.These external links are handled well, they can enrich the content and provide references, but if not managed properly, they may also affect the website's SEO performance or user experience.AnQiCMS as a content management system that focuses on efficiency and SEO has provided practical automation solutions in this regard, helping us better manage external links in article content.

Core options in the background content settings

The core mechanism of AnQiCMS handling external links in articles, mainly reflected in the "Content Settings" backend. There is a very crucial option - "Do you want to automatically filter external linksThis option provides content publishers with two entirely different strategies for handling external links in the content of articles.

When you choose “Automatically filter external linksWhen you publish or update article content, the system will automatically detect and remove all links pointing to external websites.This practice is very useful for those who want to keep the content of their website highly 'pure', not passing any link weight to the outside, or strictly limiting external jumps for security reasons.For example, some government or financial official websites may need to ensure that all links are within their own domain names to avoid users being redirected to uncontrollable third-party pages.

If your operational strategy allows for the inclusion of external links but you still want to maintain some control over SEO, then you can choose to use the termDo not filter external links.In this case, AnQiCMS will not remove the external links in the article, but will automatically add them to the external linksrel="nofollow"Property.nofollowThe tag is used to tell the search engine that the current page does not want to pass 'link voting' or 'weight' to the external page being linked.This ensures the integrity and reference value of the article content, making it convenient for users to click and view, while also avoiding the dispersal of the site's SEO weight due to a large number of external links, which is a very balanced and commonly used processing method.

This setting's flexibility lies in the fact that it provides a global automation mechanism.You do not need to manually check and modify each external link every time you edit an article, AnQiCMS will automatically complete these tasks according to your preferences, greatly improving the efficiency of content publication.

Link handling at the template level:urlizeFilter

In addition to the global settings on the back end, AnQiCMS also provides intelligent link processing capabilities at the template rendering level, which is mainly achieved throughurlizeTo implement a filter.

Imagine that you might have directly pasted a URL address into the article content, such ashttps://en.anqicms.com, but this address was not enclosed in<a>In the tag, it cannot be clicked directly. In this case, use it in the template.urlizeThe filter can automatically identify URL strings in text (including email addresses) and convert them into clickable HTML links. More importantly, this filter will alsoAutomatically add these links torel="nofollow"property.

For example, in your article detail template, if you need to display the article content and want to automatically format any unformatted URLs tonofollowThe link, you can use it like this:

<div>
    {{ archiveContent|urlize|safe }}
</div>

Here|safeIt is a safe filter in the Django template engine, which tells the system that this content is safe and does not need to be escaped as HTML entities so that the browser can correctly parse the generated content<a>.urlizeThe existence of the filter provides a good supplementary processing for those scenarios where link tags may not be manually added during content editing, ensuring consistency in user experience and SEO strategy.

A powerful tool for batch processing existing content

Sometimes, we may need to unify adjust the links in a large number of published articles on the website. AnQiCMS's “Full site content replacementThe feature (under 'Content Management') can be used.Although it is not specifically designed for automatic filtering of external links, as a powerful content processing tool, it can achieve one-click replacement of keywords or links throughout the entire site.

For example, if your website has ever linked to an expired or rebranded external resource, you can use this feature to batch replace all text or URLs pointing to the old link with the new address, or even replace them with empty, thus achieving batch maintenance and cleanup of internal and external links on the site.This is undoubtedly a tool that saves time and labor costs for websites with a large amount of content.

In general, AnQiCMS provides flexible external link filtering through the 'Content Settings' in the background.nofollowThis strategy is implemented through the template level.urlizeThe filter has enhanced link recognition and processing capabilities, and is supported by the 'site-wide content replacement' function for batch maintenance.These automated and batch solutions ensure that the website maintains content richness while also effectively managing the SEO impact and content security of external links.


Frequently Asked Questions (FAQ)

Q1: If I change the external link filtering option in the content settings (for example, from 'Unfiltered' to 'Filtered'), will it affect my existing articles?

A1: When you modify the setting of 'whether to automatically filter external links', this new rule usually takes effect when you edit and save the article content next time.That is to say, if you only modify the settings without saving the existing articles, then the external links of these articles will remain in their original state.If you want the new settings to be applied immediately to all articles, you may need to combine the 'Site-wide Content Replacement' feature for batch processing, or edit and save each article one by one.

Q2: AnQiCMS will automatically add external images, videos, and other resource links to the content of my articlesnofollowor filter them for me?

A2: “Whether to automatically filter external links” this setting mainly targets HTML links in the article content (<a>tags). For external images (<img>tags) or videos (<iframe>/<video>Links to resources such as these, AnQiCMS has a separate option for 'whether to download remote images', you can choose to download remote images to the local server to improve loading speed and stability, but it will not directly add these resource linksnofollowProperty.

Q3: Can I manually set not to add for specific external links?nofollowOr can I have more refined control?

A3: The 'Automatically filter external links' in AnQiCMS is an automated strategy that is global or regional (depending on the content model or category settings). If 'Do not filter external links' is selected, the system will add external links to all external links uniformly.rel="nofollow". The document does not mention the option to manually override this property directly in the background for a single external link. If you have a very special single link that needs to be removednofollowYou may need to manually modify the code in the HTML mode of the article content editor, but this will override the system's automated processing, and you must ensure that your modifications to the HTML code are safe.