Module implementing an URL representation suitable for Google Safe Browsing.
None |
SafeBrowsingUrl | Class implementing an URL representation suitable for Google Safe Browsing. |
None |
Class implementing an URL representation suitable for Google Safe Browsing.
None |
None |
SafeBrowsingUrl | Constructor |
canonical | Public method to convert the URL to the canonical form. |
fullUnescape | Method to recursively unescape an URL. |
hashes | Public method to get the hashes of all possible permutations of the URL in canonical form. |
hostPermutations | Method to generate the permutations of the host name. |
pathPermutations | Method to generate the permutations of the path. |
quote | Method to quote a string. |
digest | Static method to calculate the SHA256 digest of an URL string. |
permutations | Static method to determine all permutations of host name and path which can be applied to blacklisted URLs. |
Constructor
Public method to convert the URL to the canonical form.
Method to recursively unescape an URL.
Public method to get the hashes of all possible permutations of the URL in canonical form.
Method to generate the permutations of the host name.
Method to generate the permutations of the path.
Method to quote a string.
Static method to calculate the SHA256 digest of an URL string.
Static method to determine all permutations of host name and path which can be applied to blacklisted URLs.