Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #15338

Re: [ Get Hostname ]

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.php
Subject Re: [ Get Hostname ]
Date Mon, 18 May 2015 15:58 +0200
Organization PointedEars Software (PES)
Lines 31
Message-ID <2141060.glS3abRQ9P@PointedEars.de> (permalink)
References <ad6347be-372c-4f89-9511-2c0ebb989a0e@googlegroups.com> <55599B49.7050802@arnowelzel.de> <55599D06.7080208@arnowelzel.de> <1865910.lMKXOGlSMj@PointedEars.de> <5559EEEE.5080000@arnowelzel.de>
Reply-To Thomas 'PointedEars' Lahn <php@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1431957649 28379 eJwFwYEBwDAEBMCVpPyLcRD2H6F3UB62G0HDYs1faEfuSCesZhBiI17b56I0uW/eTSnwm/wBMoASHw== (18 May 2015 14:00:49 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 18 May 2015 14:00:49 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwFwQkBwDAIA0BLAwK0cnga/xJ25xYSkwgPOJ1Z2/NQ2lboPIoeGkX8kDuehU9IW6z1TcVoJgpHn9Xy/nxGFk0=
Cancel-Lock sha1:mMs1g3XVS4OZMtFIMHyT3ReQQM8=
X-NNTP-Posting-Host eJwFwYEBACAEBMCV9Pg0jsT+I3TnysXaRqf5+FRLAoibyBHtigtJOQT3QmqExetWURu2+QcclhC9
Xref csiph.com comp.lang.php:15338

Show key headers only | View raw


Arno Welzel wrote:

> Am 2015-05-18 um 15:26 schrieb Thomas 'PointedEars' Lahn:
>> $_SERVER['REMOTE_ADDR'], as it is correctly written (no space in-between,
>> certainly not after “$”), is almost never “returning the shared hosting
>> DNS reverse”.  It yields the external *IP address* of the *client*, not 
>> the server.  Usually that means that it is the *dial-up* _IP address_
>> assigned
> [...]
> 
> I assumed the "client" is in fact a *server* which uses PHP to fetch
> content from another server - and as the OP explained in
> <cdd30e0e-1570-4ccf-bc50-7d35ac9a32c0@googlegroups.com>:
> 
> "I'm trying to identify the domain that is carrying out consultations in
> my API.
> 
> The API is limited by domain, so I need to know which domain came the
> query"
> 
> So I hope it's clear that we are not talking about clients using their
> dial-up-connections to run PHP scripts accessing the OPs web server.

Not necessarily.  However, that is what API keys are for.  You do _not_ 
simply allow everyone on the Net to run any programs on your server.

-- 
PointedEars
Zend Certified PHP Engineer
Twitter: @PointedEars2
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[ Get Hostname ] alissonlinneker@gmail.com - 2015-05-11 17:10 -0700
  Re: [ Get Hostname ] "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-05-12 02:33 +0200
    Re: [ Get Hostname ] alissonlinneker@gmail.com - 2015-05-11 17:38 -0700
      Re: [ Get Hostname ] Jerry Stuckle <jstucklex@attglobal.net> - 2015-05-11 20:55 -0400
  Re: [ Get Hostname ] gordonb.rtzee@burditt.org (Gordon Burditt) - 2015-05-12 01:22 -0500
    Re: [ Get Hostname ] Matthew Carter <m@ahungry.com> - 2015-05-12 09:38 -0400
      Re: [ Get Hostname ] alissonlinneker@gmail.com - 2015-05-12 12:28 -0700
        Re: [ Get Hostname ] Jerry Stuckle <jstucklex@attglobal.net> - 2015-05-12 17:09 -0400
          Re: [ Get Hostname ] alissonlinneker@gmail.com - 2015-05-12 14:12 -0700
            Re: [ Get Hostname ] Matthew Carter <m@ahungry.com> - 2015-05-12 18:31 -0400
            Re: [ Get Hostname ] Jerry Stuckle <jstucklex@attglobal.net> - 2015-05-12 21:52 -0400
        Re: [ Get Hostname ] gordonb.6xh3q@burditt.org (Gordon Burditt) - 2015-05-13 18:25 -0500
      Re: [ Get Hostname ] Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-13 20:37 +0200
  Re: [ Get Hostname ] Denis McMahon <denismfmcmahon@gmail.com> - 2015-05-12 12:09 +0000
  Re: [ Get Hostname ] alissonlinneker@gmail.com - 2015-05-12 17:13 -0700
    Re: [ Get Hostname ] Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-05-13 18:09 +0200
  Re: [ Get Hostname ] Arno Welzel <usenet@arnowelzel.de> - 2015-05-18 09:56 +0200
    Re: [ Get Hostname ] Arno Welzel <usenet@arnowelzel.de> - 2015-05-18 10:04 +0200
      Re: [ Get Hostname ] Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-18 15:26 +0200
        Re: [ Get Hostname ] Arno Welzel <usenet@arnowelzel.de> - 2015-05-18 15:53 +0200
          Re: [ Get Hostname ] Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-18 15:58 +0200
        Re: [ Get Hostname ] "Peter H. Coffin" <hellsop@ninehells.com> - 2015-05-18 09:53 -0500
    Re: [ Get Hostname ] Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-05-18 11:30 -0400

csiph-web