Spam Prevention

Class Methods

The following methods can be invoked on instances of this class.

checkAll(array arrValues)

Runs all checks on the form

checkCountry()

Country check

checkCrawler()

Crawler check

checkClientVerified()

Client verified session check

checkSessionIsNew()

Session check

checkLoggedIn()

Logged in check

checkEmail(array arrValues)

E-mail address check

checkFirstNameCapitalisation(array arrValues)

First name capitalisation

checkLastNameCapitalisation(array arrValues)

Last name capitalisation

checkLastNameDB(array arrValues)

Last name database check

checkNamesMatch(array arrValues)

Name matching
Spammers often fill forms out with the same first and last name.

checkPostcode(array arrValues)

Postcode length check

checkForSecurity(array arrValues)

Check for common hacking patterns

checkForHTML(array arrValues)

Check for HTML in the values array

checkForURL(array arrValues)

Check for a URL in the values array

checkFakeField()

Check to see if a fake field is filled

checkKeywords(array arrValues)

Keyword DB check

checkLocalDB()

Checks for a previous offense / spam submission in the last 7 days

checkRemoteDB()

Remote lookup

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class