rel attribute for external links (HTML <A> tag)

Status
Not open for further replies.

gREEEEEEEEEr

kiwifarms.net
Joined
Dec 15, 2017
External links are tagged with rel="nofollow", which tells search engines not to follow the link or give SEO to the external URL. But there are a few other rel types that I think should be added.

external: tells the browser that it's an external site. I'm not actually sure that this one does anything. It's more just an informative thing. It doesn't tell the browser to open it in a new window/tab (target="_blank" does that), and it doesn't tell search engines not to follow the link (nofollow does that).

noopener: tells the browser not to give the linked page access to the page that opened it. This is important for security as it will prevent links from giving the linked page access to scripts/objects back on the Kiwifarms page. This is important for security.

noreferrer: tells the browser not to tell the linked page the URL of the page the visitor came from (i.e. Kiwifarms). This would prevent Kiwifarms from showing up if they have any visit tracking on their page. Note that the NoScript add-on does not prevent sites from tracking visitors based on the referrer, so even users who browse with scripts disabled may be revealing this info to outside webmasters.

So, the list that I'd suggest we use for external links is:

rel="external nofollow noopener noreferrer"

Thoughts/comments?
 
I wonder if noreferrer would fix the imgur issue.
What's the imgur issue? I don't think the rel attribute would work on an <img> tag... if that's what you mean, then I think the experimental attribute
referrerpolicy="no-referrer" might do the trick, assuming the browser supports it.
 
Status
Not open for further replies.
Back