CaMykS  1.0-20231201
Functions | Variables
client.php.inc File Reference

Functions

 client_getIp ()
 
 client_getUserAgent ()
 
 client_isHTTPS ()
 
 client_getRefererSite ()
 
 client_isServerClient ()
 
 client_getDoNotTrack ()
 
 client_getUAInfos ($ua=false)
 
 client_checkIsBot ($ua=false)
 
 client_getBotInfos ($bot='')
 
 client_getBotInfosFromUserAgent ($ua='')
 
 client_getKnownBots ()
 
 client_checkIsTool ($ua=false)
 
 client_getToolInfos ($tool='')
 
 client_getToolInfosFromUserAgent ($ua='')
 
 client_getKnownTools ()
 
 client_checkIsBeforeBot ($ua=false)
 
 client_getBeforeBotInfos ($bot='')
 
 client_getBeforeBotInfosFromUserAgent ($ua='')
 
 client_getKnownBeforeBots ()
 
 client_checkIsUnknown ($ua=false)
 
 client_getUnknownInfos ($unknown='')
 
 client_getUnknownInfosFromUserAgent ($ua='')
 
 client_getKnownUnknowns ()
 
 client_checkIsGeneric ($ua=false)
 
 client_getGenericInfos ($generic='')
 
 client_getGenericInfosFromUserAgent ($ua='')
 
 client_loadKnownGenerics ()
 
 client_checkIsHack ($ua=false)
 
 client_getHackInfos ($hack='')
 
 client_getHackInfosFromUserAgent ($ua='')
 
 client_getKnownHacks ()
 
 client_getFakeInfosFromUserAgent ($ua='')
 
 _client_mergeUAInfos ($req, $infos)
 
 _client_loadSoftwareProperties ()
 
 _client_checkSoftwareIsFake ($type, $infos, $ua)
 
 _client_isOnePlusDevice ($ua='')
 
 _client_isHuaweiDevice ($ua='')
 
 _client_isPocophoneDevice ($ua='')
 
 _client_isKyoceraDevice ($ua='')
 
 _client_isAmpeDevice ($ua='')
 
 _client_checkFirefoxIsFake ($infos, $ua)
 

Variables

global $softwareProperties
 Client specific methods. More...
 

Function Documentation

◆ client_getIp()

client_getIp ( )

Return client IP address.

Returns
string

◆ client_getUserAgent()

client_getUserAgent ( )

Return client user agent.

Returns
string

◆ client_isHTTPS()

client_isHTTPS ( )

Check if page is loaded in HTTPS (SSL).

Returns
boolean result

◆ client_getRefererSite()

client_getRefererSite ( )

Return client referer site.

Returns
string

◆ client_isServerClient()

client_isServerClient ( )

Check if the server is also the client.

Returns
boolean result

◆ client_getDoNotTrack()

client_getDoNotTrack ( )

Check if client is marked as Do Not Track.

Returns
boolean result

◆ client_getUAInfos()

client_getUAInfos (   $ua = false)

Return client informations.

Parameters
mixte$ua
Returns
array

◆ client_checkIsBot()

client_checkIsBot (   $ua = false)

Return bot index if bot.

Parameters
string$ua
Returns
mixed

◆ client_getBotInfos()

client_getBotInfos (   $bot = '')

Return bot info if bot.

Parameters
string$bot
Returns
mixed

◆ client_getBotInfosFromUserAgent()

client_getBotInfosFromUserAgent (   $ua = '')

Return bot info from user agent.

Parameters
string$ua
Returns
mixed

◆ client_getKnownBots()

client_getKnownBots ( )

Return known bots list.

Returns
array

◆ client_checkIsTool()

client_checkIsTool (   $ua = false)

return tool index if tool

Parameters
string$ua
Returns
mixed

◆ client_getToolInfos()

client_getToolInfos (   $tool = '')

Return tool info if tool.

Parameters
string$tool
Returns
mixed

◆ client_getToolInfosFromUserAgent()

client_getToolInfosFromUserAgent (   $ua = '')

Return tool info from user agent.

Parameters
string$ua
Returns
mixed

◆ client_getKnownTools()

client_getKnownTools ( )

Return given known tool list.

Returns
array

◆ client_checkIsBeforeBot()

client_checkIsBeforeBot (   $ua = false)

Return bot index if before bot.

Parameters
string$ua
Returns
mixed

◆ client_getBeforeBotInfos()

client_getBeforeBotInfos (   $bot = '')

Return bot info if bot.

Parameters
string$bot
Returns
mixed

◆ client_getBeforeBotInfosFromUserAgent()

client_getBeforeBotInfosFromUserAgent (   $ua = '')

Return bot info from user agent.

Parameters
string$ua
Returns
mixed

◆ client_getKnownBeforeBots()

client_getKnownBeforeBots ( )

Return known bots list.

Returns
array

◆ client_checkIsUnknown()

client_checkIsUnknown (   $ua = false)

Return unknown index if unknown.

Parameters
string$ua
Returns
mixed

◆ client_getUnknownInfos()

client_getUnknownInfos (   $unknown = '')

Return unknown info if unknown.

Parameters
string$unknown
Returns
mixed

◆ client_getUnknownInfosFromUserAgent()

client_getUnknownInfosFromUserAgent (   $ua = '')

Return unknown info from user agent.

Parameters
string$ua
Returns
mixed

◆ client_getKnownUnknowns()

client_getKnownUnknowns ( )

Return given known unknown list.

Returns
array

◆ client_checkIsGeneric()

client_checkIsGeneric (   $ua = false)

Return generic index if generic.

Parameters
string$ua
Returns
mixed

◆ client_getGenericInfos()

client_getGenericInfos (   $generic = '')

Return generic info if generic.

Parameters
string$generic
Returns
mixed

◆ client_getGenericInfosFromUserAgent()

client_getGenericInfosFromUserAgent (   $ua = '')

Return bot info from user agent.

Parameters
string$ua
Returns
mixed

◆ client_loadKnownGenerics()

client_loadKnownGenerics ( )

Load known web generic library lists.

Returns
void

◆ client_checkIsHack()

client_checkIsHack (   $ua = false)

Return hack index if hack.

Parameters
string$ua
Returns
mixed

◆ client_getHackInfos()

client_getHackInfos (   $hack = '')

Return bot info if hack.

Parameters
string$hack
Returns
mixed

◆ client_getHackInfosFromUserAgent()

client_getHackInfosFromUserAgent (   $ua = '')

Return hack info from user agent.

Parameters
string$ua
Returns
mixed

◆ client_getKnownHacks()

client_getKnownHacks ( )

Return given known web hack or hack list.

Returns
array

◆ client_getFakeInfosFromUserAgent()

client_getFakeInfosFromUserAgent (   $ua = '')

Return fake visitor info from user agent.

Parameters
string$ua
Returns
mixed

◆ _client_mergeUAInfos()

_client_mergeUAInfos (   $req,
  $infos 
)
private

Return merged informations.

Parameters
array$req
array$infos
Returns
array

◆ _client_loadSoftwareProperties()

_client_loadSoftwareProperties ( )
private

Load some defined properties for softwares.

Returns
void

◆ _client_checkSoftwareIsFake()

_client_checkSoftwareIsFake (   $type,
  $infos,
  $ua 
)

Check if sofware is fake.

Parameters
string$type
array$infos
string$ua
Returns
boolean

◆ _client_isOnePlusDevice()

_client_isOnePlusDevice (   $ua = '')
private

Check if given UA is a OnePlus device

Parameters
string$ua
Returns
boolean result

◆ _client_isHuaweiDevice()

_client_isHuaweiDevice (   $ua = '')
private

Check if given UA is a Huawei device

Parameters
string$ua
Returns
boolean result

◆ _client_isPocophoneDevice()

_client_isPocophoneDevice (   $ua = '')
private

Check if given UA is a Pocophone device.

Parameters
string$ua
Returns
mixed

◆ _client_isKyoceraDevice()

_client_isKyoceraDevice (   $ua = '')
private

Check if given UA is a Kyocera device.

Parameters
string$ua
Returns
boolean result

◆ _client_isAmpeDevice()

_client_isAmpeDevice (   $ua = '')
private

Check if given UA is a Ampe device.

Parameters
string$ua
Returns
boolean result

◆ _client_checkFirefoxIsFake()

_client_checkFirefoxIsFake (   $infos,
  $ua 
)
private

Check Firefox fake user agents.

Parameters
array$infos
string$ua
Returns
boolean result

Variable Documentation

◆ $softwareProperties

global $softwareProperties

Client specific methods.

Engine / Tool Library

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Version
1.0.147
Date
Creation: Jun 2007
Modification: Nov 2023
Note
This program is distributed as is - WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.