openaustralia / righttoknow

Theme for, and issues specific to, Right To Know.
https://www.righttoknow.org.au/
MIT License
21 stars 14 forks source link

Censor Mobile Phone Numbers and Credit Numbers #706

Open benrfairless opened 6 years ago

benrfairless commented 6 years ago

Censor mobile numbers and other personal information. This can probably be achieved by regex in censor rules.

benrfairless commented 6 years ago

Considering these as possbile options:

^(?:\+?(61))? ?(?:\((?=.*\)))?(0?[2-57-8])\)? ?(\d\d(?:[- ](?=\d{3})|(?!\d\d[- ]?\d[- ]))\d\d[- ]?\d[- ]?\d{3})$

or

\b([\+-]?\d{2}|\d{4})\s*\(?\d+\)?\s*(?:\d+\s*)+\b

Both of these would hide all Australian numbers from Right to Know

drzax commented 6 years ago

It would be great to see a little more discussion about why this is needed.

benrfairless commented 6 years ago

Good point!

We’ve had members of the community publish their personal mobiles. Alaveteli hides UK mobiles by default as mobile numbers really aren’t fair to publish.

There is also the fact that some agencies get a bit grumpy and have told us their numbers are being harvested by telemarketers which isn’t fair on them.

benrfairless commented 5 years ago

Added this to the Public Authorities Triage as it's feedback we've already got from authorities.

jamezpolley commented 5 years ago

@benrfairless I think this would only censor this data in the text on the website; it's not going to censor anything in the emails going back and forth to the parties involved, and it's not going to censor any attachments. Is that right?

benrfairless commented 5 years ago

This would censor documents and the correspondence published on the site in the same way that email addresses are censored.

benrfairless commented 3 years ago

When we tried to do this it caused the server to fill with log files and PDF documents to be inaccessible. I'm sure that UK numbers are censored, I just don't know how to do this for AU numbers.