Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #11497
| From | Scott Johnson <noonehome@chalupasworld.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: excluding an ip from count |
| Date | 2013-10-20 11:37 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <l417tl$cpa$3@dont-email.me> (permalink) |
| References | (2 earlier) <1le1qhen20jek$.hmw9rte8r5ck.dlg@40tude.net> <l3n4l6$fjf$1@dont-email.me> <M5f8u.78287$i75.37050@fx03.iad> <l3sfdg$sor$1@dont-email.me> <hmv56954f3a83d0hvf7drn6mett3s6o4qc@4ax.com> |
On 10/19/2013 2:52 PM, Richard Yates wrote:
> On Fri, 18 Oct 2013 16:14:52 -0700, Scott Johnson
> <noonehome@chalupasworld.com> wrote:
>
>> On 10/18/2013 11:29 AM, Tobiah wrote:
>>> On 10/16/2013 03:40 PM, Scott Johnson wrote:
>>>> On 10/16/2013 12:38 PM, richard wrote:
>>>>> On Wed, 16 Oct 2013 09:44:51 -0700, Tobiah wrote:
>>>>>
>>>>>> On 10/15/2013 04:38 PM, richard wrote:
>>>>>>> What are some ways of not countng hits from one IP?
>>>>>>> I now have a counter for my songs and want to exclude my IP from being
>>>>>>> included in the hit counter.
>>>>>>>
>>>>>>
>>>>>> Check out the values in the $_SERVER variable in the manual:
>>>>>>
>>>>>> 'REMOTE_ADDR'
>>>>>> The IP address from which the user is viewing the current page.
>>>>>>
>>>>>> so,
>>>>>>
>>>>>> if($_SERVER['REMOTE_ADDR'] != $my_ip_address){
>>>>>> increment_count();
>>>>>> }
>>>>>
>>>>> That could work. thanks.
>>>>>
>>>>
>>>> Unless you have a shared IP.
>>>
>>> Yeah, but in this case he wants to differentiate between
>>> himself and the cloud users, so it's probably
>>> ok, although he'd have to glean his IP from the PHP server rather than
>>> checking the setting on his local box.
>>>
>>> Tobiah
>>
>> Again, if he has a shared IP then he may be losing counts from others
>> whose ISP use the same IP. As for 'probably', how would it be if your
>> bank says your account is 'probably' secure? ;)
>>
>> Scotty
>
> The "probably" wasn't about security, it was about being able to
> exclude his own IP from his hits.
>
I was just messing around with ya.
Scotty
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
excluding an ip from count richard <noreply@example.com> - 2013-10-15 19:38 -0400
Re: excluding an ip from count "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2013-10-16 00:17 +0000
Re: excluding an ip from count Tobiah <toby@tobiah.org> - 2013-10-16 09:44 -0700
Re: excluding an ip from count richard <noreply@example.com> - 2013-10-16 15:38 -0400
Re: excluding an ip from count Scott Johnson <noonehome@chalupasworld.com> - 2013-10-16 15:40 -0700
Re: excluding an ip from count Tobiah <toby@tobiah.org> - 2013-10-18 11:29 -0700
Re: excluding an ip from count Scott Johnson <noonehome@chalupasworld.com> - 2013-10-18 16:14 -0700
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-19 08:06 -0700
Re: excluding an ip from count Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-10-19 11:34 -0400
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-19 23:23 +0000
Re: excluding an ip from count richard <noreply@example.com> - 2013-10-19 19:52 -0400
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-19 22:31 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-19 22:24 -0700
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-20 09:13 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-20 06:52 -0700
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-20 10:32 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-20 09:41 -0700
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-20 18:23 +0000
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-20 21:04 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-20 22:56 -0700
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-21 03:32 -0400
Re: excluding an ip from count Arno Welzel <usenet@arnowelzel.de> - 2013-10-21 11:54 +0200
Re: excluding an ip from count Tim Streater <timstreater@greenbee.net> - 2013-10-21 11:06 +0100
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-21 08:05 -0400
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-20 18:14 +0000
Re: excluding an ip from count Tim Streater <timstreater@greenbee.net> - 2013-10-20 22:24 +0100
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-21 18:30 +0000
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-21 18:34 +0000
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-19 23:02 -0700
Re: excluding an ip from count Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-10-20 10:12 -0400
Re: excluding an ip from count Evan Platt <evan@theobvious.espphotography.com.invalid> - 2013-10-20 09:43 -0700
Re: excluding an ip from count Jerry Stuckle <jstucklex@attglobal.net> - 2013-10-20 21:05 -0400
Re: excluding an ip from count Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-20 18:07 +0000
Re: excluding an ip from count Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-10-20 10:08 -0400
Re: excluding an ip from count The Natural Philosopher <tnp@invalid.invalid> - 2013-10-19 18:44 +0100
Re: excluding an ip from count Richard Yates <richard@yatesguitar.com> - 2013-10-19 14:50 -0700
Re: excluding an ip from count The Natural Philosopher <tnp@invalid.invalid> - 2013-10-19 23:37 +0100
Re: excluding an ip from count Richard Yates <richard@yatesguitar.com> - 2013-10-19 14:52 -0700
Re: excluding an ip from count Scott Johnson <noonehome@chalupasworld.com> - 2013-10-20 11:37 -0700
Re: excluding an ip from count Arno Welzel <usenet@arnowelzel.de> - 2013-10-20 16:56 +0200
csiph-web