[tor-bugs] #19143 [Internal Services/Service - trac]: Change the BadContent rules

Tor Bug Tracker & Wiki blackhole at torproject.org
Sat May 21 06:03:02 UTC 2016


#19143: Change the BadContent rules
----------------------------------------------+--------------------------
 Reporter:  cypherpunks                       |          Owner:  qbi
     Type:  defect                            |         Status:  reopened
 Priority:  Medium                            |      Milestone:
Component:  Internal Services/Service - trac  |        Version:
 Severity:  Normal                            |     Resolution:
 Keywords:                                    |  Actual Points:
Parent ID:                                    |         Points:
 Reviewer:                                    |        Sponsor:
----------------------------------------------+--------------------------
Changes (by cypherpunks):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Replying to [comment:1 qbi]:
 > I changed the regex for the phone numbers a bit. So it should fit to the
 spam attempts we saw earlier.
 >
 It seems the new regex let one spam attempt through. These phone numbers
 use groups of numbers which the regex currently isn't catching.

 A better regex would be `1[ -\.]*8[ -\.]*[0-9]+[ -\.]*[0-9]+[
 -\.]*[0-9]+`. FWIW [https://trac.edgewall.org/wiki/BadContent Trac's own
 BadContent page] contains an even longer regex which looks to block the
 same spam (see the last line).
 > The `http:` prevents that trac gets eaten by spammers. It catches most
 of the attempts and removing this line would render the site completely
 unusable.
 The site also becomes harder to use for legitimate users, but if that's
 really the only solution i guess we have to live with it :(

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/19143#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list