Core options in the background content settings

AnQiCMS handles the core mechanism of external links in articles, mainly reflected in the "Content SettingsWhether to automatically filter external linksThis option provides content publishers with two entirely different strategies for handling external links that appear in article content.

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

If your operational strategy allows external links in content but you still want to maintain some control over SEO, then you can choose “Do not filter external linksIn this case, AnQiCMS will not remove external links from the article, but will automatically add them to the external linksrel="nofollow"properties.nofollowThe purpose of the tag is to inform search engines that the current page does not want to pass the "link voting" or "weight" to the linked external page.This ensures the completeness and reference value of the article content, facilitates users to click and view, and can also avoid the dispersion of the SEO weight of this site due to a large number of external links. It is a very balanced and commonly used method of handling.

The flexibility of this setting lies in the provision of 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 publishing.

Link processing at the template level:urlizeFilter

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

Imagine that you may have directly pasted a URL address into the article content, likehttps://en.anqicms.com, but this address is not enclosed in<a>Label cannot be clicked directly. At this time, use it in the template.urlizeFilter, it can automatically identify the URL strings (including email addresses) in the text and convert them into clickable HTML links. More importantly, this filter will alsoEnglish for these links is added automaticallyrel="nofollow"Property.

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

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

Here are the|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 HTML entity escaped so that the browser can correctly parse the generated content<a>Label.urlizeThe existence of the filter provides a good supplement for scenarios where link tags may not be manually added during content editing, ensuring consistency in user experience and SEO strategy.

The powerful tool for batch processing existing content

Sometimes, we may need to make uniform adjustments to the links in a large number of articles already published on the website. AnQiCMS’s “full-site content replacement”Function (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 site.

For example, if your website has ever linked to an external resource that is no longer valid or has changed brands, you can use this feature to batch replace all text or URLs pointing to the old links with the new addresses, or even replace them directly with empty ones, thereby achieving batch maintenance and cleaning of internal and external links on the site.This is undoubtedly a time and labor-saving tool for websites with a large amount of content.

In general, AnQiCMS provides flexible external link filtering and automatic strategy through the "content settings" in the background.nofollowon the template level.urlizeThe filter has enhanced the ability to identify and process links, and is supplemented with the "Full Site Content Replacement" feature for batch maintenance.These automated and batch processing solutions ensure that the website maintains content richness while effectively managing the SEO impact and content security of external links.


Common Questions (FAQ)

Q1: If I change the external link filter option in the content settings (for example, from "No Filter" to "Filter"), will it affect my existing articles?

Q2: AnQiCMS will automatically add external image, video and other resource links in my article contentnofollowor filter them?

A2: “Is the external link filtering enabled” this setting mainly targets HTML links in the article content (<a>tags). For external images (<img>tags) or videos (<iframe>/<video>等)的资源链接,AnQiCMS有单独的“是否下载远程图片”选项,你可以选择将远程图片下载到本地服务器,以提升加载速度和稳定性,但它并不会直接对这些资源链接添加nofollowproperties.

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

A3: AnQiCMS's 'Whether to automatically filter external links' 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 uniformly add all external links forrel="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 specific 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 automatic processing, and you must ensure that your modifications to the HTML code are safe.