可用的站点设置,用于配置用户发布链接的 "nofollow"

:bookmark: This documentation explains how to configure “nofollow” attributes for links posted by users on Discourse forums.

:person_raising_hand: Required user level: Administrator

Default “nofollow” implementation

By default, all user submitted links will have a nofollow attribute added to deter inappropriate or potentially damaging behaviour. This includes all links on user profiles, as robots.txt ignores all profile information.

However, there are exceptions that can be managed by admins to improve the relevance of certain links to your site and your trusted users.

Exceptions

  • Staff posts: Links posted by staff members do not receive the “nofollow” attribute.
  • Trust Level 3 users: Regular users who have reached Trust Level 3 can have their links followed. This setting can be disabled if necessary.
  • Whitelisted domains: Admins can create a whitelist of domains (including subdomains) to allow “follow” links for specific, trusted sites.

Configuring “nofollow” settings

Follow these steps to manage the “nofollow” settings via the Admin Settings:

Step 1: Configuring general “nofollow” settings

  1. Navigate to Admin / Site Settings / Spam.
  2. Ensure the add rel nofollow to user content setting is checked by default.
  3. If you change this setting (not recommended), you will need to rebake all posts to apply the new settings to existing links.

Step 2: Configuring Trust Level 3 settings

  1. Navigate to Admin / Site Settings / Trust Levels.
  2. By default, TL3 users’ links are followed. You can check the box to remove this exclusion and keep all user links as rel="nofollow".

Step 3: Whitelisting domains

  1. Navigate to Admin / Site Settings / Required.
  2. Add your site’s parent domain to the exclude rel nofollow domains whitelist.
  3. This allows internal links and links to content on the same site (outside Discourse) to be followed, increasing the visibility and relevance of content.

Tips for Whitelisting:

  • Include only the specific subdomain when whitelisting a site on a popular domain. For example, use myblog.wordpress.com to avoid whitelisting all wordpress.com subdomains.

Last edited by @SaraDev 2024-08-05T22:14:58Z

Check documentPerform check on document:
21 个赞

If the link is put by an administrator, the Nofollow is not put.

How can I add the “Nofollow” to these links too?

2 个赞

AFAIK there’s no way to do that—but I might be wrong. Perhaps adding support for {:rel=“nofollow”} notation (which some markdown engines already support) would be a good idea?

E.g. [Google](https://google.com){:rel="nofollow"}

I don’t understand why anyone would ever want this feature, so it is unlikely to happen on that basis.

2 个赞

Sometimes have to answer (or tell things) using really low quality links. I have that kind case right now and that’s why I found this topic :wink:

But the last thing then is rewarding such site with a bit better SEO-value giving incoming link. Sure, nofollow is just a suggestion, but it is strong one.

So, admin may want to allow following in general, but not allways. I don’t see any reason why nofollow should be on/off option.

2 个赞

Bumping this

I have the same problem. I am adding some external links to my post as an admin. I want those links to be marked nofollow. But Discourse is making it too complex to add “rel=nofollow”

What should I do?

You can write a plugin, or ask a meta plugin developer in marketplace to write it for you.

I suggest you start by taking a look at this snippet in the post.rb model:

def add_nofollow?
    return false if user&.staff?
    user.blank? || SiteSetting.tl3_links_no_follow? || !user.has_trust_level?(TrustLevel[3])
  end

Found here in the open source repo where all knowledge can be found :slight_smile:

Have the same issue; need to use a separate account with little privileges to avoid follow being added when deemed undesirable.

Approach would be nice. Possibly combined with a list of sites for which never a follow can be added like competitors.

1 个赞

Nofollow is quite meaningless today. Google makes its own mind and follow it or not, mostly not (follow nofollow :sweat_smile:).

For indexing it is less relevant, but afaik link juice is still distributed.

Nope. The term ”link juice” is quite yesterday but SEO-value comes from totally different metrics. Nofollow doesn’t mean anything there either. If googlebot follows that link it is counted, no matter if there is nofollow or not.

There is only one solution: don’t link — and that kind tool is missing now: deleting links automatically when nofollow is really wanted.

This is same situation (but different story) than when webmasters still believe H-tags has something to do with SEO :wink:

请理解这可能是一种需求。我希望拥有一个自私的外部链接策略,无论权限如何。

你能提供一些关于你说法来源的资料吗?

限定你的外部链接。
反向链接仍然是排名信号。
SEO 新手指南 101…

现在我不得不问……你行不行?那些链接中没有一个能证明你所说的。你可以开始谷歌搜索 googlebot+nofollow。

你现在问我是否愿意了解排名的基本原理。抱歉——你问这个问题花了大约一分钟,现在我应该花大约 12 小时来向你解释。这不是很……公平的要求。

但如果你不愿意自己搜索和学习,可以重读那些资源——其中提到“仍然”和“信号”的那个是一个很好的起点。而且你必须理解谷歌机器人何时会跟踪 AND 不会跟踪名为 nofollow 的请求。

举证责任在你,伙计。你提出了主张,我提供了来自谷歌的、与你主张相矛盾的来源。

Googlebot 跟踪 nofollow 链接,但 nofollow 仍然是算法会遵守的一个有效提示。

sponsoredugc 也是有效的属性,并且已经存在大约三年了。

来源

像任何东西一样。但它仍然只是一个提示,谷歌会根据相关性自行决定,而不是根据 nofollow。这就是为什么没有人可以信任或依赖它。

事情不同,但类似:有时谷歌会遵循 robots.txt,有时它甚至不 bother 看它,并且绝对不遵循它。Gmail 中的链接是最广为人知的情况。

好的。我认为我明白你的意思了,但你传播的错误信息是极其危险的建议。让我花点时间来解释我的说法。这里可能存在沟通障碍,我假设你声称“nofollow”完全没有意义。

你为什么关心谷歌索引你域名之外的内容?如果你关心自己的页面不被索引,请使用 robots 元标签robots.txt。不要仅仅依赖 robots.txt,如这里所示

Nofollow 并非无用或无意义。它是一种自私的策略,保留了 pagerank(谷歌创始人白皮书)。Pagerank 作为最初的排名因素可能在今天并不突出,但不要说带有 nofollow 的限定链接是毫无意义的。这种笼统的说法是危险的、误导性的,而且是懒惰的。

我同意“链接权重”已经过时并且是行业术语,但 pagerank 仍然是一个关键的排名因素。请参阅 Ahrefs 关于 pagerank 的博客文章。同样,只要你控制了认可和关联,谁还在乎谷歌跟踪什么呢?

再说一遍,只要你控制了认可和关联,谁还在乎谷歌跟踪什么呢?请参阅帖子顶部了解 noindex。

这些是基本概念,我已经为你阐述清楚了。你可能是个网站管理员,但数字营销是我的全职工作。SEO 是我日常工作的一部分。

请参阅帖子顶部了解 noindex。

1 个赞

点击此选项后,我是否需要“重新烘焙”帖子才能使其生效?- 我是论坛的管理员,信任级别为 4,似乎外部链接是 dofollow 的,我想更改它。

编辑 刚重读了上面的帖子,似乎不止我一个人。我假设管理员没有变通方法?