Skip to Content.
Sympa Menu

discuss - Re: [opennic-discuss] The website

discuss AT lists.opennicproject.org

Subject: Discuss mailing list

List archive

Re: [opennic-discuss] The website


Chronological Thread 
  • From: Hunter 9999 <mail AT hunter-9999.de>
  • To: "discuss AT lists.opennicproject.org" <discuss AT lists.opennicproject.org>
  • Subject: Re: [opennic-discuss] The website
  • Date: Tue, 11 Dec 2012 22:28:14 +0100

Am 10.12.2012 um 03:30 schrieb nanashiRei <nanashi.rei AT gmail.com>:
> Your Server is calling the script, internally, so yes. It can't even
> know there is a client. You would have to use an <iframe> to be
> perfectly transparent.

Not really.
You can get the Client-IP by:
$_SERVER['REMOTE_ADDR'];
Then you can grab the Script with the IP in the URL.

Only add
$ip = $_SERVER['REMOTE_ADDR'];
before $ch = curl_init();

Here an working example:
http://test.hunter-9999.de/geoip

Here the modified Source:
http://test.hunter-9999.de/geoip/source


--

Daniel Jäger


Archive powered by MHonArc 2.6.19.

Top of Page