Skip to content

soulshake/IDNcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDNCheck

IDNcheck performs safety checks on international domain names. This might be useful if you want to see how likely a given domain is to be used for nefarious purposes such as phishing. It returns the unicode restriction level passed by a string, as described in Unicode Technical Standard #39, Unicode Security Mechanisms (see References).

Note: On first run, it will automatically download a file if it doesn't exist: http://www.unicode.org/Public/UNIDATA/Scripts.txt

How to use

Typical usage might look something like this:

>>> import idncheck
>>> idncheck.idncheck("hello")
1
>>> idncheck.idncheck("φilosoφia")
42
>>> idncheck.idncheck("φilosoφia", 3) # FIXME
True
>>> idncheck.idncheck("paypal")
1
>>> idncheck.idncheck("paypаl")
4
>>> idncheck.idncheck("раура1")
4

or

#!/usr/bin/env python

import idncheck

idncheck.idencheck("φilosoφia", 3): # FIXME
    print("I see what you're doing there")

References

This tool serves as an implementation of the Restriction-Level detection described in Unicode Technical Standard #39, Unicode Security Mechanisms:

Additional use cases and details are available in these blog posts:

TODO

  • Create a web service on a Gandi Python Simple Hosting instance

About

A tool for checking the risk level of domain names.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages