Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soulshake/idncheck
A tool for checking the risk level of domain names.
https://github.com/soulshake/idncheck
Last synced: 3 days ago
JSON representation
A tool for checking the risk level of domain names.
- Host: GitHub
- URL: https://github.com/soulshake/idncheck
- Owner: soulshake
- License: gpl-2.0
- Created: 2014-09-09T03:40:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-15T18:42:50.000Z (over 8 years ago)
- Last Synced: 2024-12-23T13:53:50.968Z (5 days ago)
- Language: Python
- Size: 64.5 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```python
>>> 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
```python
#!/usr/bin/env pythonimport 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:- [TR 39](http://www.unicode.org/reports/tr39/#Restriction_Level_Detection)
Additional use cases and details are available in these blog posts:
- [Gmail post](http://googleonlinesecurity.blogspot.com/2014/08/protecting-gmail-in-global-world.html)
- [Another Google post](http://googleenterprise.blogspot.com/2014/08/protecting-gmail-in-global-world.html)## TODO
- Create a web service on a Gandi Python Simple Hosting instance