Services_ProjectHoneyPot
[ class tree: Services_ProjectHoneyPot ] [ index: Services_ProjectHoneyPot ] [ all elements ]

Class: Services_ProjectHoneyPot_Response_Result

Source Location: /Services_ProjectHoneyPot-0.5.2/Services/ProjectHoneyPot/Response/Result.php

Class Overview


A class to return the result from ProjectHoneyPot.org


Author(s):

Version:

  • Release: 0.5.2

Methods


Inherited Variables

Inherited Methods


Class Details

[line 65]
A class to return the result from ProjectHoneyPot.org
  • Property: boolean $suspicious: Is the IP suspicious?
  • Property: boolean $harvester: Is the IP a known harvester?
  • Property: boolean $comment_spammer: Is the IP a known comment spammer?
  • Property: boolean $search_engine: Is the IP a search engine? If this is true, the others ($suspicious, $harvester, $comment_spammer) are false.
  • Property: mixed $last_activity: Last known activity of the IP - the number of days from 0 to 255.
  • Property: int $score: The thread score of this IP. The range of the score is from 0 to 255. 255 means the IP is extremely threatening and 0 indicates that no threat score has been assigned.
  • Property: int $type: Indicates the type of the IP (0, 1, 2, 4) - $suspicious, $harvester, $comment_spammer or $search_engine.
  • Property: string $type_hr: A HR representation of $type.
  • Property: mixed $debug: Yes, no, maybe so?! ;)
  • Author: Till Klampaeckel <till@php.net>
  • Version: Release: 0.5.2
  • Link: http://code.google.com/p/services-projecthoneypot/
  • Uses: Net_DNS
  • Uses: Net_CheckIP2
  • License: The BSD License


[ Top ]


Method Detail

__construct (Constructor)   [line 80]

Services_ProjectHoneyPot_Response_Result __construct( )

__construct

Sets the defaults for the result.

  • Access: public
  • Uses: self::$_store

[ Top ]

getAll   [line 160]

array getAll( )

Returns all known about this host/ip.
  • Access: public

[ Top ]

getLastActivity   [line 171]

mixed getLastActivity( )

Get the last activity. An integer representation (of the number of days - 0 to 255) or null (if there is none recorded)..
  • Access: public

[ Top ]

getScore   [line 190]

mixed getScore( )

Get the score of the host/ip.

<quote> Threat Scores are a rough guide to determine the threat a particular IP address may pose to your site. Threat Scores should be treated as a rough measure. Threat Scores range from 0-255, however they follow a logrithmic scale which makes it extremely unlikely that a threat score over 200 will ever be returned. </quote>


[ Top ]

getType   [line 200]

array getType( )

Returns which type the current host/ip is. The result is always an array.
  • Access: public

[ Top ]

isCommentSpammer   [line 130]

boolean isCommentSpammer( )

Is comment spammer? true/false
  • Access: public

[ Top ]

isHarvester   [line 140]

boolean isHarvester( )

Is a harvester? true/false
  • Access: public

[ Top ]

isSearchEngine   [line 150]

boolean isSearchEngine( )

Is a search engine? true/false
  • Access: public

[ Top ]

toArray   [line 212]

array toArray( )

Just returns an array.
  • Access: public
  • Uses: self::$_store

[ Top ]

__get   [line 117]

mixed __get( string $name)

magical __get
  • Access: public
  • Uses: self::$_store

Parameters:

string   $name   —  The name.

[ Top ]

__set   [line 104]

mixed __set( string $name, mixed $value)

magical __set
  • Access: public
  • Uses: self::$_store

Parameters:

string   $name   —  The name.
mixed   $value   —  The value.

[ Top ]

__toString   [line 223]

string __toString( )

Returns a string.
  • Access: public
  • Uses: self::$_store

[ Top ]


Documentation generated on Thu, 10 Dec 2015 05:49:18 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.