Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
D
 Description
E
 Examples
G
 GeoIP-Functions
 geoip.inc
 geoip_best_ip
 geoip_close_db
 geoip_country_code_by_addr
 geoip_country_name_by_addr
 GEOIP_DATABASE_LOADED
 geoip_fetch_hostname
 geoip_flag_html
 geoip_flag_link
 geoip_functions.php
 geoip_in_bogons_list
 geoip_in_drop_list
 geoip_is_proxy
 geoip_list_hostname
 geoip_list_ip
 geoip_open_db
 geoip_whois_link
H
 How to use the GeoIP-module for your own projects
L
 License(Documentation)
 License(Flags)
 License(GeoIP-Module)
 License(GeoLite Country)
 License(phpWhoIs)
 Licenses
P
 phpwhois_functions.php
This file holds all extended functions which belongs to IP and GEOIP handling.
function geoip_best_ip()
Fetches best matching IP for actual connection.
function geoip_close_db($gi)
Closes GeoIP-database after use.
function geoip_country_code_by_addr($gi,
$addr)
Fetches country-code
function geoip_country_name_by_addr($gi,
$addr)
Fetches country-name
The Constant GEOIP_DATABASE_LOADED will be defined when the GeoIP was opened successfully.
function geoip_fetch_hostname($ip)
Fetches hostname for given IP.
function geoip_flag_html($gi,
$src)
Returns a piece of HTML-code to display a flag.
function geoip_flag_link($gi,
$src)
Returns an absolute URL to a flag-image.
function geoip_in_bogons_list($ip)
Checks if the given IP is in an unallocated or private address range.
function geoip_in_drop_list($ip)
Checks if the given IP is in spamhaus' drop-list.
function geoip_is_proxy()
Checks if the actual user ( $_SERVER['REMOTE_ADDR'] ) is behind a proxy.
function geoip_list_hostname($ip)
Fetches and checks hostname for a given IP.
function geoip_list_ip()
Fetches user-ip and proxy-ip if available.
function geoip_open_db($use_cache = FALSE)
Opens GeoIP-database for use.
function geoip_whois_link($ip_addr)
Create a clickable link for a WhoIs-Query.
See README.txt for original docu and geoip.inc for functions.
GeoIP Internal Documentation is licensed under the Creative Commons Attribution ShareAlike License, v.3.0 Germany.
“Flags” are 247 icons — in GIF and PNG formats — representing most countries in the world as small pixel icons.
GeoIP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
OPEN DATA LICENSE (GeoLite Country and GeoLite City databases)
copyright 1999-2009 easyDNS Technologies Inc.
Close