Can you disable the `urlize` filter from automatically adding `rel="nofollow"`?

Calendar 👁️ 68

When using AnQi CMS for content creation,urlizeFilter is undoubtedly a very convenient feature. It can intelligently identify URLs or email addresses in article content and automatically convert them into clickable hyperlinks, saving the trouble of manually adding links.However, careful friends may notice that these are byurlizethe automatically generated links will default to includerel="nofollow"properties. This raises a common question: If I want to completely disableurlizeThe filter will automatically addrel="nofollow"is there a way to do so?

urlizethe filter meetsrel="nofollow"the default behavior

First, let's delve deeper into it.urlizeThe default working mode of the filter. According to the template filter document of Anqi CMS,urlizeThe function is to 'automatically add an a tag to url, email, and automatically add nofollow's rel'. This means that whenever throughurlizeThe filter processes a text containing URLs, and the generated hyperlinks will be automatically appendedrel="nofollow"Property.

It can be seen from the document description that thisrel="nofollow"IsurlizeA built-in and automatic behavior of the filter, which does not provide direct parameters (such asurlize:falseto selectively enable or disable it.nofollow. The filter was initially designed as a default strategy for handling external links.

In the content settings.rel="nofollow"Consideration

excepturlizeThe filter itself, AnQi CMS also mentioned it in the 'Content Settings' in the backgroundrel="nofollow". On the "Content Settings" page, there is an option for "whether to automatically filter external links".When this option is set to 'Do not filter external links', the external links retained in the document will still be addedrel="nofollow".

This further confirms that AnQi CMS, by default, tends to add when handling external linksrel="nofollow"This is usually for SEO practices and website security considerations.nofollowThe attribute can inform the search engine that the link should not pass the "weight", which helps website administrators control the flow of page SEO weight, avoid link spam, and effectively protect the reputation and ranking of the website itself, especially when dealing with user-generated content (UGC) or pointing to untrusted external resources.

Currently disabledrel="nofollow"Limitations

In general, based on the current features and documentation provided by Anqi CMS, there is no direct backend switch orurlizeThe filter's parameter can "completely disable" all automatically generated external link attributesrel="nofollow"It seems to be a default security strategy of the system when handling any recognized as an external link.

This means that if you want certain specific external links on the website to pass weight (i.e., withoutnofollow), and these links are throughurlizeThe filter automatically generates, so under the existing framework, some indirect methods may need to be adopted. For example, for a few particularly important links, you may need to consider avoiding the use ofurlizeA filter to process text containing these links, instead of manually inserting hyperlinks in the content editor. However, this will increase the workload of content editing, and may be consistent withurlizeThe convenience of the original intention is contrary.

For deeper-level requirements, such as the need to globally modify this default behavior of the system, this may involve secondary development of the core code of Anqi CMS.But for most website operators, this is not a recommended routine operation, and it may affect system upgrades and maintenance.

Summary

urlizeThe filter automatically adds to external links in Anqi CMS.rel="nofollow"It is an inherent design of the system for SEO and security considerations.Currently, there is no direct option provided in the background settings or filter parameters to completely disable this behavior.Without a specific external link requirednofollowIn the scenario of the attribute, website operators need to weigh the actual situation.urlizeThe convenience brought and the need for manual editing.


Frequently Asked Questions (FAQ)

1. If I manually add an external link in the article content editor, it will come withrel="nofollow"?In most cases, hyperlinks inserted manually through the content editor, as long as you do not manually add them in HTML moderel="nofollow"will not automatically have this attribute.rel="nofollow"The automatic addition is mainly aimed aturlizeThe filter automatically identifies and converts text links, and in the "Content Settings", the scenario where external links are not filtered but the system still needs to standardize the processing is selected.

2. Why does AnQi CMS default to adding external links?rel="nofollow"?This is mainly to comply with SEO practices and enhance website security.nofollowThe attribute can prevent your website from passing SEO weight to external websites, which is very useful when linking to advertisements, user submitted content, or websites you do not fully trust.It can help you better control the link structure of the website and the search engine ranking, avoiding negative impacts due to linking to low-quality or spam websites.

3. Is there a way to makeurlizethe links automatically added by the filter becomerel="dofollow"(i.e., withoutnofollow)?According to the existing documents,urlizeThe filter does not provide parameters to change its default additionrel="nofollow"nor does it have an option to automatically addrel="dofollow"If your business scenario indeed needs a large number of throughurlizeGenerated links withoutnofollowAnd manual editing is not feasible, it may be necessary to consider contacting the official AnQi CMS for a customized solution, or finding a developer familiar with Go language and AnQi CMS architecture for a secondary development.Please note that modifying the core behavior may cause compatibility and maintenance costs.

Related articles

How does the `urlize` filter-generated link perform in terms of browser compatibility?

As an indispensable security CMS user in daily content operation, we often need to ensure that the content we publish is consistent and professional across various terminals and browsers.Among them, the handling of links is a seemingly simple but actually important detail.Today, let's delve into how the `urlize` filter generates links in Anqi CMS and how they perform in terms of browser compatibility. --- ### The "urlize" filter of Anqi CMS: Do the links you generate display perfectly in all browsers?As a content operator

2025-11-09

How to apply the `urlize` filter to parse URLs in the output of a custom content model field?

In Anqi CMS, the flexibility of the content model is one of its core strengths, allowing us to create various custom fields to carry specific types of content based on different business needs.When we have customized some fields to store URL links, such as "External Reference Link" or "Download Address of Related Resources", you may find that these links are displayed as plain text on the front-end page by default and cannot be clicked to jump directly.This not only affects user experience, but also fails to fully utilize the value of the link.

2025-11-09

Does the `urlize` filter recognize and convert URLs with non-standard ports (such as `http://example.com:8080`)?

## Deeply analyze the `urlize` filter of Anqi CMS: Can it intelligently recognize and convert URLs with non-standard ports?In Anqi CMS template development and content creation, the `urlize` filter is a very practical tool that can automatically identify URLs and email addresses in text content and convert them into clickable HTML links. It can also automatically add the `rel="nofollow"` attribute according to the configuration, which is very beneficial for SEO optimization and user experience.However, a common problem in daily operations is

2025-11-09

Does the `urlize` filter work in all AnQiCMS built-in template tags (such as `system`, `contact`)?

In AnQiCMS template development, flexibly using built-in tags and filters is the key to improving content display efficiency.Many users often encounter a question when dealing with text output: Can the `urlize` filter be directly applied to the output of all built-in template tags (such as `system` and `contact`)?

2025-11-09

Does the `urlize` filter apply to processing URLs in a large amount of user-generated content (UGC)?

## The `urlize` filter of AnqiCMS: An intelligent assistant for URL processing in UGC content and operational considerations In the current era where content is king, user-generated content (UGC) has become an indispensable part of the website.From comments, forum posts to user submissions, the vast amount of UGC greatly enriches the website ecosystem.However, the problem that follows is the handling of URLs in the content.

2025-11-09

How to customize the title display format of AnQiCMS article detail page to meet SEO requirements?

In website operation, the title of the article detail page (`<title>` tag) is crucial for search engine optimization (SEO).A well-designed title can not only improve the click-through rate of the article in the search results, but also help search engines better understand the content of the page.AnQiCMS provides a flexible mechanism that allows you to easily customize the title display format of the article detail page according to your own SEO strategy.This article will introduce how to adjust the title of the article detail page in AnQiCMS to meet different SEO requirements.

2025-11-09

What methods does AnQiCMS support to accurately control the display of keywords and descriptions of website content in search results?

In today's highly competitive online environment, making website content stand out in search engines is a focus for every operator.Precisely controlling the keywords and descriptions of website content is a key strategy to improve search visibility, attract target users, and optimize click-through rates.AnQiCMS as an enterprise-level content management system provides multi-dimensional, in-depth functional support, allowing you to flexibly and meticulously manage the SEO performance of your website.

2025-11-09

How to configure unique display fields for different content models in AnQiCMS to adapt to personalized content display?

In AnQi CMS, it is a crucial function to configure unique display fields for different content models to meet the diverse needs of website content display.This capability allows us to flexibly customize the structure of articles, products, activities, or any other type of content based on specific business requirements, thereby providing a highly personalized content display experience.Understanding Content Model: The Foundation of Personalized Display One of the core advantages of AnQiCMS is its 'flexible content model'.

2025-11-09