siteadmin:realm_filtering
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| siteadmin:realm_filtering [2019/12/05 10:42] – admin | siteadmin:realm_filtering [2019/12/05 10:51] (current) – admin | ||
|---|---|---|---|
| Line 74: | Line 74: | ||
| check_bad_realms { | check_bad_realms { | ||
| if (& | if (& | ||
| - | ## reject usernames that end with realms that are never going to be govroa | + | ## reject usernames that end with realms that are never going to be govroam/eduroam realms |
| - | m/eduroam realms | + | |
| ## is there a way to automate this??! | ## is there a way to automate this??! | ||
| Line 81: | Line 80: | ||
| if (& | if (& | ||
| - | if (& | + | if (& |
| update request { | update request { | ||
| & | & | ||
| Line 110: | Line 109: | ||
| ## stuff here will be matched for both govroam and eduroam | ## stuff here will be matched for both govroam and eduroam | ||
| + | ## Common realm provided by phone manufacturers by default | ||
| if (& | if (& | ||
| update request { | update request { | ||
| Line 117: | Line 117: | ||
| } | } | ||
| + | ## Username is not an email address. | ||
| if (& | if (& | ||
| update request { | update request { | ||
| Line 123: | Line 124: | ||
| reject | reject | ||
| } | } | ||
| + | ## Ends in ' | ||
| if (& | if (& | ||
| update request { | update request { | ||
| Line 131: | Line 132: | ||
| } | } | ||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| + | | ||
| + | ## Ends in a single character - all TLDs are 2+ characters. | ||
| if (& | if (& | ||
| update request { | update request { | ||
| Line 165: | Line 142: | ||
| } | } | ||
| - | | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| if (& | if (& | ||
| update request { | update request { | ||
| Line 207: | Line 150: | ||
| } | } | ||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| + | ## Misspellings and misunderstandings | ||
| if (& | if (& | ||
| update request { | update request { | ||
| Line 248: | Line 166: | ||
| } | } | ||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | |||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| if (& | if (& | ||
| Line 352: | Line 174: | ||
| } | } | ||
| + | ## Starts with a ' | ||
| if (& | if (& | ||
| update request { | update request { | ||
| Line 358: | Line 181: | ||
| reject | reject | ||
| } | } | ||
| + | | ||
| + | ## Some typical inappropriate realms. | ||
| if (& | if (& | ||
| update request { | update request { | ||
| Line 429: | Line 254: | ||
| if (& | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | if (& | ||
| update request { | update request { | ||
| & | & | ||
| Line 441: | Line 260: | ||
| } | } | ||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | if (& | ||
| - | update request { | ||
| - | & | ||
| - | } | ||
| - | reject | ||
| - | } | ||
| - | if (& | + | } else { |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | if (& | + | |
| - | update request { | + | |
| - | & | + | |
| - | } | + | |
| - | reject | + | |
| - | } | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | } else { | + | |
| update request { | update request { | ||
| & | & | ||
| Line 534: | Line 271: | ||
| </ | </ | ||
| + | |||
| + | Many thanks to Matt Richards from Bath University for this code. | ||
siteadmin/realm_filtering.1575542525.txt.gz · Last modified: 2019/12/05 10:42 by admin
