NAME
ipok – verify that an IP address belongs to a country approved of by the US government

SYNOPSIS
aux/ipok IP ...

DESCRIPTION
Ipok consults various databases, including making whois queries, to determine what country a given IP address belongs to and compares that against a list of known `bad guys'. For each IP, ipok will print a line of the form
okay address–range country address–range–name owner [other ...]

where okay will be ok or bad.

EXAMPLES
See if mince is in a `terrorist' country.

% aux/ipok 135.104.24.16
ok 135.104.0.0–135.104.255.255 US LUCENT–135–104–0–0–B \
'Bell Laboratories/Lucent Technologies ' (cached)

See if inet is in a `terrorist' country.

% aux/ipok 2620:17a:4:1::1
ok 2620:17a::–2620:17a:fff:ffff:ffff:ffff:ffff:ffff \
US ALCATEL–LUCENT Alcatel–Lucent

FILES
/sys/lib/ipok.cache   pre–loaded entries

SEE ALSO
ipokfs(4)
US State Department's list of countries designated as supporting terrorist activities, defined by the Export Administration Act, section 6(j), listed for example in
http://www.bis.doc.gov/Licensing/BIS_Exports.pdf.
Copyright © 2025 Plan 9 Foundation