UNA
Loading...
Searching...
No Matches
BxAntispamModule Class Reference
Inheritance diagram for BxAntispamModule:
BxDolModule BxDol

Public Member Functions

 __construct (&$aModule)
 actionContentChecked ()
 serviceUpdateDisposableDomainsLists ()
 serviceIpTable ()
 serviceDnsblList ()
 serviceBlockLog ()
 serviceFilterSpam ($mContent, $sIp='')
 serviceIsSpamUrl ($sContent)
 serviceIsSpam ($sContent, $sIp='', $isStripSlashes=BX_SLASHES_AUTO)
 serviceIsToxic ($sContent, $sIp='', $isStripSlashes=BX_SLASHES_AUTO, $bSupressNotification=false)
 serviceCheckFormForToxicity (&$oForm)
 serviceIsLastFormSubmittedToxic ()
 serviceSetCommentAsPending ($iCmtId)
 serviceOnFormSubmitted ($sModule, $iEntry, $sAction, &$oForm)
 serviceOnToxicContentFound (&$sText)
 serviceOnToxicContentPosted ($sModule, $iContentId)
 serviceCheckLogin ($sIp='')
 serviceCheckJoin ($sEmail, &$bApproval, $sIp='')
 serviceIsIpDnsBlacklisted ($sCurIP='', $sNote='')
 serviceIsIpWhitelisted ($sIp='')
 serviceIsIpBlocked ($sIp='')
 serviceBlockIp ($mixedIP, $iExpirationInSec=86400, $sComment='')
 servicePruning ()
 serviceConfigValues ($s)
 serviceGetProfanityFilterDicts ()
 serviceGetToxicityFilterActions ()
 serviceGetLassoModerationActions ()
 log ($mixedContents, $sSection='', $sTitle='')
Public Member Functions inherited from BxDolModule
 __construct ($aModule)
 isEnabled ()
 getName ()
 isLogged ()
 getUserId ()
 getUserPassword ()
 serviceIsSafeService ($s)
 serviceGetSafeServices ()
 serviceIsPublicService ($s)
 serviceGetPublicServices ()

Protected Member Functions

 getErrorMessageIpBlocked ()
 getErrorMessageSpam ()
 getErrorMessageSubmitFalsePositiveReport ()
 _grid ($sObjectGrid)

Additional Inherited Members

Static Public Member Functions inherited from BxDolModule
static getInstance ($sName)
static getTitle ($sUri)
static getTitleKey ($sUri)
Public Attributes inherited from BxDolModule
 $_aModule
 $_oDb
 $_oTemplate
 $_oConfig

Member Function Documentation

◆ serviceBlockIp()

BxAntispamModule::serviceBlockIp ( $mixedIP,
$iExpirationInSec = 86400,
$sComment = '' )

◆ serviceCheckJoin()

BxAntispamModule::serviceCheckJoin ( $sEmail,
& $bApproval,
$sIp = '' )

Perform complex check if user is allowed to join. First it checks if IP is directly blocked (

See also
serviceIsIpBlocked), then it checks in DNS black lists (
serviceIsIpDnsBlacklisted), then it checks in StopForumSpam service (
BxAntispamStopForumSpam).
Parameters
$sCurIPIP to check, or empty for current IP
Returns
empty string - if join should be allowed, error message - if join should be blocked

◆ serviceCheckLogin()

BxAntispamModule::serviceCheckLogin ( $sIp = '')

Perform complex check if user is allowed to login. First it checks if IP is directly blocked (

See also
serviceIsIpBlocked), then it checks in DNS black lists (
serviceIsIpDnsBlacklisted).
Parameters
$sIpIP to check, or empty for current IP
Returns
empty string - if join should be allowed, error message - if join should be blocked

◆ serviceConfigValues()

BxAntispamModule::serviceConfigValues ( $s)

◆ serviceFilterSpam()

BxAntispamModule::serviceFilterSpam ( $mContent,
$sIp = '' )

Filter undesired words

Parameters
$sContentcontent to filter
$sIpIP address of content poster
Returns
modified or the same content.

◆ serviceGetLassoModerationActions()

BxAntispamModule::serviceGetLassoModerationActions ( )
Returns
array with avaliable Lasso Moderation actions

◆ serviceGetProfanityFilterDicts()

BxAntispamModule::serviceGetProfanityFilterDicts ( )
Returns
array with avaliable dictionaries languages

◆ serviceGetToxicityFilterActions()

BxAntispamModule::serviceGetToxicityFilterActions ( )
Returns
array with avaliable toxicity filter actions

◆ serviceIsIpBlocked()

BxAntispamModule::serviceIsIpBlocked ( $sIp = '')

◆ serviceIsIpDnsBlacklisted()

BxAntispamModule::serviceIsIpDnsBlacklisted ( $sCurIP = '',
$sNote = '' )

Check if IP is blacklisted in some DNS chain (

See also
BxAntispamDNSBlacklists).
Parameters
$sCurIPIP to check, or empty for current IP
$sNote[optional] place where checking is performed, for example 'join', 'login'
Returns
true if IP blacklisted and not whiteloisted, or false if under cron execution or if IP isn't blacklisted

◆ serviceIsIpWhitelisted()

BxAntispamModule::serviceIsIpWhitelisted ( $sIp = '')

◆ serviceIsSpam()

BxAntispamModule::serviceIsSpam ( $sContent,
$sIp = '',
$isStripSlashes = BX_SLASHES_AUTO )

Check text for spam. First it check if IP is whitelisted(or under cron execution or user is admin) - for whitelisted IPs check for spam isn't performed, then it checks URLs found in text for DNSURI black lists (

See also
BxAntispamDNSURIBlacklists), then it checks text in Akismet service (
BxAntispamAkismet). It can send report if spam is found or tries to inform caller to block the content (depending on configuration).
Parameters
$sContentcontent to check for spam
$sIpIP address of content poster
$isStripSlashesslashes parameter: BX_SLASHES_AUTO - automatically detect magic_quotes_gpc setting BX_SLASHES_NO_ACTION - do not perform any action with slashes
Returns
true if spam detected and content shouln't be recorded, false if content should be processed as usual.

◆ serviceIsSpamUrl()

BxAntispamModule::serviceIsSpamUrl ( $sContent)

Check text for spam URL. It checks URLs found in text for DNSURI black lists (

See also
BxAntispamDNSURIBlacklists),
Parameters
$sContentcontent to check for spam
Returns
true if spam detected, false if spam isn't detected, null if detection wasn't performed.

◆ serviceIsToxic()

BxAntispamModule::serviceIsToxic ( $sContent,
$sIp = '',
$isStripSlashes = BX_SLASHES_AUTO,
$bSupressNotification = false )

Check text for toxicity. It can send report if toxic content is found or tries to inform caller to block the content (depending on configuration).

Parameters
$sContentcontent to check for spam
$sIpIP address of content poster
$isStripSlashesslashes parameter: BX_SLASHES_AUTO - automatically detect magic_quotes_gpc setting BX_SLASHES_NO_ACTION - do not perform any action with slashes
Returns
true if toxic content detected and content shouln't be recorded, false if content should be processed as usual.

◆ servicePruning()

BxAntispamModule::servicePruning ( )

The documentation for this class was generated from the following file:
  • modules/boonex/antispam/classes/BxAntispamModule.php