Home | Trees | Indices | Help |
---|
|
object --+ | CarrierApi
A list of HTTP headers to choose the original client IP address from. In addition to these the REMOTE_ADDR is also used as a final fallback.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|
|||
_HEADERS_TO_CHECK =
|
|||
_VERSION =
|
|||
_PRIVATE =
|
|||
_data = None hash(x) |
|||
_MISSING_DATA_EX =
|
|||
_INVALID_PROP_EX =
|
|
|||
Inherited from |
|
Load the data file from the provided path. The data file is reloaded every tme this method is called. |
Try and get a specific property for a given IP address. Note : If mutiple properties are needed for the same IP it is more efficient to call properties() once than repeated calls to property() |
A set of all the possible property names. The set contains PropertyName objects that each have a string name and an associated data type. |
Check if the given propertyName is not None and exists in the data file. Calls to this method must be sure that the data object is already loaded. |
Normalise the keys in the passed in key value map. This lower-cases the keys, replaces "_" with "-" and removes any HTTP_ prefix. |
Extracts and cleans an IP address from the headerValue. Some headers such as "X-Forwarded-For" can contain multiple IP addresses such as: clientIP, proxy1, proxy2... |
An IP address is considered public if it is not in any of the following ranges: 1) any local address IP: 0 2) a local loopback address range: 127/8 3) a site local address i.e. IP is in any of the ranges: range: 10/8 range: 172.16/12 range: 192.168/16 4) a link local address |
|
_HEADERS_TO_CHECK
|
_PRIVATE
|
_MISSING_DATA_EX
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri May 30 11:47:02 2014 | http://epydoc.sourceforge.net |