Web-based whois gateway written in Python for lighttpd
- Clone this git repo into the home directory of your project
- Update
rebuild_geolocation.sh
with the download url for GeoLite2 City from your maxmind account, and run the script - Enter a
webservice python3.7 shell
, and runrebuild_venv.sh
- Update
PROJECT
name inwww/python/src/app.py
, if needed - Create a file
ipinfo_token
with your ipinfo token - Run
webservice python3.7 start
https://tools.wmflabs.org/whois/202.12.29.175/lookup
or/gateway.py?ip=202.12.29.175&lookup=true
- human-readable Whois result page, with a query form
https://tools.wmflabs.org/whois/202.12.29.175/lookup/json
or/gateway.py?ip=202.12.29.175&lookup=true&format=json
- Whois result in JSON
https://tools.wmflabs.org/whois/202.12.29.175
or/gateway.py?ip=202.12.29.175
- List of links to regional databases
https://tools.wmflabs.org/whois/202.12.29.175/redirect/NAME
or/gateway.py?ip=202.12.29.175&provider=NAME
- Redirect to a search result page provided by NAME
See LICENSE.md.