Opened 5 years ago
Last modified 11 days ago
#4950 reopened enhancement
Links in Trac tickets should be nofollow'd
Reported by: | jonoaldersonwp | Owned by: | dd32 |
---|---|---|---|
Milestone: | Priority: | lowest | |
Component: | Trac | Keywords: | seo |
Cc: |
Description
Links in trac tickets should have a rel="nofollow"
attribute, in order to reduce the attraction of the platform as a target for spammers.
Change History (12)
#2
@
5 years ago
- Keywords close removed
- Type changed from defect to enhancement
Can we write a Trac plugin?
Their legacy bad decisions shouldn't result in us leaving holes in our defences :)
#3
@
5 years ago
We can, but we're not writing/deploying new plugins due to the lack of people to maintain them ongoing.
#4
@
3 years ago
- Owner set to dd32
- Resolution set to fixed
- Status changed from new to closed
In 11548:
#5
@
3 years ago
Well, that definitely worked.
$ curl -s https://meta.trac.wordpress.org/ticket/4950 | grep 'ext-link' <a class="ext-link" rel="ugc nofollow" href="https://trac.edgewall.org/ticket/3352"><span class="icon"></span>https://trac.edgewall.org/ticket/3352</a> was closed as wontfix<br />
#6
@
3 years ago
Oh, also, just noting that you can't do a py:match
against a.ext-link
, as it seems that it can only match on elements that exist within the templates, not against the dynamic content inserted within those template tags.. although you can filter the template stream within the template tags as shown in the commit above.
#10
@
11 months ago
- Resolution fixed deleted
- Status changed from closed to reopened
Re-opening because this isn't applying now, at least to .prbot
comments
This has been causing some problems with the increase in GitHub spam which has been syncing through to WordPress.org Tracs.
Example: This link should be nofollowed, but isn't: https://example.org/
Unfortunately Trac doesn't allow an easy way to do this.
https://trac.edgewall.org/ticket/3352 was closed as wontfix
The only way to achieve this is to write a Trac plugin, as comment content can't be altered within a Trac template.