Property | Type | Description | |
---|---|---|---|
$explanation |
Method | Description | |
---|---|---|
blocked ( $verbose = false ) | ||
blocked ( boolean $verbose = false ) : boolean | string | ||
explain ( ) | ||
explain ( ) : string | ||
forbidden ( ) | Send a 403 Forbidden header. | |
getBlocklist ( ) | ||
getBlocklist ( ) : array | ||
getBlocklistFilename ( ) | ||
getBlocklistFilename ( ) : string | ||
isRefererOnBlocklist ( ) | ||
isRefererOnBlocklist ( ) : boolean | The public use of this function is undocumented. | |
isUrlOnBlocklist ( $url, $entity = 'url' ) | ||
isUrlOnBlocklist ( string $url, string $entity = 'url' ) : boolean | The public use of this function is undocumented. | |
protect ( $action = '' ) | ||
protect ( string $action = '' ) | Block a page if referer is found on list of blocked domains. |
Method | Description | |
---|---|---|
blockAction ( $action = '' ) | ||
blockAction ( string $action = '' ) | Execute desired action. | |
cls ( ) | Clear output buffer. | |
concatenateBlocklist ( $blocklistContent ) | ||
concatenateBlocklist ( string $blocklistContent ) : string | ||
doBlock ( $action = '' ) | ||
doBlock ( string $action = '' ) | Responsible for sending action output. | |
getBlocklistContents ( ) | ||
getBlocklistContents ( ) : string | ||
getConcatenateBlocklist ( ) | ||
getConcatenateBlocklist ( ) : string | ||
getHttpReferer ( ) | ||
getHttpReferer ( ) : string | null | Returns HTTP Referer if it is available and not empty, null otherwise. | |
parseBlocklist ( $blocklistContent ) | ||
parseBlocklist ( string $blocklistContent ) : array | ||
redirect ( $url ) | ||
redirect ( string $url ) | Redirect to a url by sending the appropriate header. |
public static getBlocklistFilename ( ) : string | ||
return | string |
public static isRefererOnBlocklist ( ) : boolean | ||
return | boolean |