Impostazioni del sito disponibili per configurare "nofollow" per i link pubblicati dagli utenti

: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 Mi Piace

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

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

2 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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:

Capisco che questa potrebbe essere una necessità. Voglio avere una politica di link in uscita egoistica indipendentemente dalle autorizzazioni.

Puoi fornire delle fonti per le tue affermazioni?

Qualifica i tuoi link in uscita.
I backlink sono ancora un segnale di ranking.
Linee guida per principianti SEO 101…

Ora devo chiedere… puoi? Nessuno di quei link dice quello che hai affermato. Puoi iniziare a cercare googlebot+nofollow.

Ora mi stai chiedendo se sono disposto ad approfondire le basi di come funziona il ranking. Mi dispiace, per la tua richiesta ci è voluto circa un minuto e ora dovrei impiegare circa 12 ore per spiegartelo. Non è… una richiesta molto equilibrata.

Ma se non sei disposto a cercare e imparare da solo, puoi rileggere quelle risorse: quella in cui ci sono le parole ancora e segnale è un buon punto di partenza. E tuttavia devi capire quando googlebot segue E non segue la richiesta chiamata nofollow.

L’onere della prova spetta a te, amico. Hai fatto tu le affermazioni e io ho fornito fonti letteralmente da Google che contraddicono le tue affermazioni.

Googlebot segue i link nofollow, ma nofollow è un suggerimento valido che è ancora osservato dall’algoritmo.

Anche sponsored e ugc sono attributi validi e lo sono da circa tre anni.

Source

Come qualsiasi altra cosa. Ma è ancora solo un indizio e per pertinenza Google prende la propria decisione, non per il nofollow. Ecco perché nessuno può fidarsi o fare affidamento su questo.

Cosa diversa, ma simile: a volte Google segue robots.txt, a volte non si preoccupa nemmeno di guardarlo e sicuramente non lo segue. I link in Gmail sono la situazione più nota.

Va bene. Penso di capire cosa stai cercando di implicare, ma la disinformazione che stai diffondendo sono consigli decisamente pericolosi. Lasciami prendere il tempo per spiegare le mie affermazioni. Potrebbe esserci un problema di comunicazione qui e presumo che tu stia affermando che “nofollow” sia completamente inutile.

Perché ti interessa cosa indicizza Google al di fuori dei tuoi domini? Se ti interessa che le tue pagine non vengano indicizzate, usa il tag meta robots e robots.txt. Non fare affidamento esclusivamente su robots.txt come mostrato qui.

Nofollow non è inutile o privo di significato. È una politica egoistica che conserva pagerank.(Whitepaper del fondatore di Google) Pagerank, essendo il fattore di ranking originale, potrebbe non essere prominente oggi, ma non affermare che i link qualificati con nofollow siano inutili. È pericoloso, fuorviante e pigro con questa affermazione generica.

Concordo sul fatto che “link juice” sia obsoleto e gergo del settore, ma pagerank è ancora un fattore di ranking chiave. Vedi il post del blog di Ahrefs su pagerank. Di nuovo, a chi importa cosa segue Google, finché hai il controllo sull’approvazione e sull’associazione.

Di nuovo, a chi importa cosa segue Google, finché hai il controllo sull’approvazione e sull’associazione. Vedi in cima al post per noindex.

Questi sono concetti di base, te li ho esposti. Potresti essere un webmaster, ma il marketing digitale è il mio lavoro quotidiano. La SEO fa parte del mio puzzle quotidiano.

Vedi in cima al post per noindex.

1 Mi Piace

Dovrò “ri-elaborare” i post dopo aver cliccato su questa opzione affinché abbia effetto? Sono l’amministratore del forum con un livello di fiducia 4 e sembra che i link esterni siano dofollow, vorrei cambiarlo.

Modifica Ho appena riletto i post sopra i miei e sembra che non sia l’unico. Presumo che non ci sia una soluzione per gli amministratori?