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.
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.