Available site settings to configure "nofollow" for links posted by users

: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をグーグル検索から始めることができます。

今、ランキングの仕組みの基本を私が知りたいかと尋ねています。すみません—あなたがそれを尋ねたことで約1分かかり、今私はそれをあなたに説明するために約12時間費やす必要があります。それは…非常に公平な要求ではありません。

しかし、自分で検索して学ぶことを望まないなら、それらのリソースを再読することができます—「まだ」と「シグナル」という言葉があるものは良い出発点です。そして、googlebotがフォローする場合とフォローしない場合のリクエスト(nofollowと呼ばれる)を理解する必要があります。

証明責任はあなたにあります。あなたが主張し、私はあなたの主張に反するGoogleの出典を文字通り提供しました。

Googlebot は nofollow リンクをたどりますが、nofollow は依然としてアルゴリズムが認識する有効なヒントです。

sponsoredugc も有効な属性であり、これらは約 3 年前から存在しています。

Source

すべてと同様に。しかし、それは依然として単なるヒントであり、関連性によってGoogleはnofollow ではなく独自の決定を下します。だからこそ、誰もそれを信頼したり頼ったりできないのです。

異なることですが、似たようなことです。Google は robots.txt に従うこともあれば、まったく気にせず、確実に従わないこともあります。Gmail のリンクが最もよく知られている状況です。

わかりました。あなたが何を暗示しようとしているのか理解していると思いますが、あなたが広めている誤情報はまったく危険なアドバイスです。私の主張を説明する時間を取らせてください。ここでコミュニケーションの行き違いがあるかもしれませんが、あなたは「nofollow」が完全に無意味だと主張していると仮定します。

Googleがあなたのドメイン外をインデックスすることをなぜ気にするのですか? あなた自身のページがインデックスされないことを気にするなら、robots metaタグrobots.txt を使用してください。robots.txtだけに頼らないでください。ここで表示されているように。

Nofollowは無用または無意味ではありません。それはページランク(Google創設者のホワイトペーパー)を保持する利己的なポリシーです。ページランクは元のランキング要因かもしれませんが、今日では顕著ではないかもしれませんが、nofollowでリンクを修飾することが無意味であると断言しないでください。それは危険で、誤解を招き、怠惰な包括的な声明です。

「リンクジュース」が時代遅れで業界用語であることには同意しますが、ページランクは依然として主要なランキング要因です。ページランクに関するAhrefsのブログ記事を参照してください。繰り返しますが、Googleが何をフォローするかを誰が気にしますか、あなたが承認と関連付けの管理を持っている限り。

繰り返しますが、Googleが何をフォローするかを誰が気にしますか、あなたが承認と関連付けの管理を持っている限り。noindexについては投稿の上部を参照してください。

これらは基本的な概念であり、私はそれらをあなたのために説明しました。あなたはウェブマスターかもしれませんが、デジタルマーケティングは私の日々の仕事です。SEOは私の毎日のパズルの1つです。

noindexについては投稿の上部を参照してください。

「いいね!」 1

このオプションをクリックした後、それが有効になるように投稿を「リベイク」する必要がありますか? - 私はフォーラムの管理者で、信頼レベルは4ですが、外部リンクはdofollowのようです。それを変更したいと思います。

編集 上記の投稿を読み直したところ、私だけではないようです。管理者向けの回避策はないと仮定していますか?