FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » excluding an ip from count
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: excluding an ip from count [message #183286 is a reply to message #183277] Sat, 19 October 2013 21:52 Go to previous messageGo to previous message
Richard Yates is currently offline  Richard Yates
Messages: 86
Registered: September 2013
Karma:
Member
On Fri, 18 Oct 2013 16:14:52 -0700, Scott Johnson
<noonehome(at)chalupasworld(dot)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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Help with app Crash
Next Topic: Populating list 2 from list 1
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 07:17:17 GMT 2024

Total time taken to generate the page: 0.04187 seconds