The Spoofchecker class

(PHP 5 >= 5.4.0, PHP 7, PHP 8, PECL intl >= 2.0.0)

Einführung

This class is provided because Unicode contains large number of characters and incorporates the varied writing systems of the world and their incorrect usage can expose programs or systems to possible security attacks using characters similarity.

Provided methods allow to check whether an individual string is likely an attempt at confusing the reader (spoof detection), such as "pаypаl" spelled with Cyrillic 'а' characters.

Klassenbeschreibung

classSpoofchecker {
publicconstintANY_CASE;
publicconstintSINGLE_SCRIPT;
publicconstintINVISIBLE;
publicconstintCHAR_LIMIT;
publicconstintASCII;
publicconstintUNRESTRICTIVE;
publicconstintMIXED_NUMBERS;
publicconstintHIDDEN_OVERLAY;
public__construct()
publicareConfusable(string$string1, string$string2, int&$errorCode = null): bool
publicisSuspicious(string$string, int&$errorCode = null): bool
publicsetAllowedLocales(string$locales): void
publicsetChecks(int$checks): void
}

Inhaltsverzeichnis

To Top