redwerks / mediawiki-shorturl-builder

React JS port of Redwerks' original Ruby based MediaWiki ShortURL builder
https://shorturls.redwerks.org/
GNU Affero General Public License v3.0
5 stars 4 forks source link

[Port] Auto detection of root/non-root config #4

Closed dantman closed 2 years ago

dantman commented 2 years ago

The ruby version had a hardcoded list of hostnames for known suffixes of Cloud Hosts, VPS, residential ISPs, etc... which would indicate a user has root control. And a sqlite database where users could submit their reverse dns

I'll need to port this manual db over. Though instead of a hardcoded list of regular expressions I should probably implement it using a text file listing suffixes in a similar way to the public-suffix list.

Incorporating the same sqlite DB probably won't work. But using a simple text file will make it easier to direct users to add a PR incorporating their reverse dns suffix.