Simple information gathering script req..

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mike

    #1

    Simple information gathering script req..

    I'm after a *simple* script to log each visitor to a website. All
    I actually need is the visitor's reported IP address whether
    genuine, proxied or hidden. Their reported browser type would be
    an advantage, regardless of what browser is actually used.

    Anyone know of anything simple and preferably free that will do
    this? The site is hosted on a FreeBSD server with access to
    CGI-Bin but it does not seem to have a server-side stats log.

    I am aware of the value (or not) of any information gathered by
    such means, however I still require it. Just something to log the
    information presented by each visit please.

    Many thanks and regards,
    Mike.
  • brucie

    #2
    Re: Simple information gathering script req..

    In alt.html,alt.co mp.lang.php,com p.lang.javascri pt Mike said:
    [color=blue]
    > I'm after a *simple* script to log each visitor to a website.[/color]

    i know. see uk.net.web.auth oring

    What is the accepted way to share a message across multiple newsgroups?


    --
    the facts and opinions expressed by brucies
    l i t t l e v o i c e s
    are not necessarily the same as those held by brucie.

    Comment

    • King of Red Lions

      #3
      Re: Simple information gathering script req..

      Mike wrote:[color=blue]
      > I'm after a *simple* script to log each visitor to a website. All
      > I actually need is the visitor's reported IP address whether
      > genuine, proxied or hidden. Their reported browser type would be
      > an advantage, regardless of what browser is actually used.
      >
      > Anyone know of anything simple and preferably free that will do
      > this? The site is hosted on a FreeBSD server with access to
      > CGI-Bin but it does not seem to have a server-side stats log.
      >
      > I am aware of the value (or not) of any information gathered by
      > such means, however I still require it. Just something to log the
      > information presented by each visit please.
      >
      > Many thanks and regards,
      > Mike.[/color]


      Comment

      • Mike

        #4
        Re: Simple information gathering script req..

        brucie <shit@usenetshi t.info> wrote:
        [color=blue]
        >In alt.html,alt.co mp.lang.php,com p.lang.javascri pt Mike said:
        >[color=green]
        >> I'm after a *simple* script to log each visitor to a website.[/color]
        >
        >i know. see uk.net.web.auth oring[/color]

        Seen and answered, hope you approve (sic).
        [color=blue]
        >What is the accepted way to share a message across multiple newsgroups?
        >http://smjg.port5.com/faqs/usenet/xpost.html[/color]

        I'll play your fucking stupid game, go on then, what is the
        accepted way to share a message across multiple newsgroups?

        Comment

        • Mike

          #5
          Re: Simple information gathering script req..

          King of Red Lions <thaynes/no_spam/@gawab.com> wrote:
          [color=blue]
          >Mike wrote:[color=green]
          >> I'm after a *simple* script to log each visitor to a website. All
          >> I actually need is the visitor's reported IP address whether
          >> genuine, proxied or hidden. Their reported browser type would be
          >> an advantage, regardless of what browser is actually used.
          >>
          >> Anyone know of anything simple and preferably free that will do
          >> this? The site is hosted on a FreeBSD server with access to
          >> CGI-Bin but it does not seem to have a server-side stats log.
          >>
          >> I am aware of the value (or not) of any information gathered by
          >> such means, however I still require it. Just something to log the
          >> information presented by each visit please.[/color][/color]
          [color=blue]
          >http://www.alt-php-faq.org/local/24/[/color]

          Hmm.. Not sure if that's what I'm after, although the problem
          might just be me being all newbie and thick. I'll have a read and
          thanks anyway.

          Mike.

          Comment

          • Karl Core

            #6
            Re: Simple information gathering script req..


            "Mike" <find@reply.t o> wrote in message
            news:300uihF2r3 n0bU4@uni-berlin.de...[color=blue]
            > brucie <shit@usenetshi t.info> wrote:
            >[color=green]
            >>In alt.html,alt.co mp.lang.php,com p.lang.javascri pt Mike said:
            >>[color=darkred]
            >>> I'm after a *simple* script to log each visitor to a website.[/color]
            >>
            >>i know. see uk.net.web.auth oring[/color]
            >
            > Seen and answered, hope you approve (sic).
            >[color=green]
            >>What is the accepted way to share a message across multiple newsgroups?
            >>http://smjg.port5.com/faqs/usenet/xpost.html[/color]
            >
            > I'll play your fucking stupid game, go on then, what is the
            > accepted way to share a message across multiple newsgroups?[/color]

            Well, if you weren't such a dumbass, you'd have clicked on the link that
            Brucie so kindly supplied to you and you'd have gotten the answer to that
            question.

            Here's a hint - if you're asking people for help, don't treat them like an
            asshole and expect to get kindness in return. Remember, it is *you* who've
            come here for help, not the other way around.


            --
            -Karl Core
            Please Support "Project Boneyard":
            North American street-punk and sub-culture mailorder and brand - Your one-stop shop for music and merch from Insurgence Records, Interrogator Records, and beyond!



            Comment

            • Mike

              #7
              Re: Simple information gathering script req..

              "Karl Core" <karl@NOSPAMkar lcore.com> wrote:
              [color=blue]
              >
              >"Mike" <find@reply.t o> wrote in message
              >news:300uihF2r 3n0bU4@uni-berlin.de...[color=green]
              >> brucie <shit@usenetshi t.info> wrote:
              >>[color=darkred]
              >>>In alt.html,alt.co mp.lang.php,com p.lang.javascri pt Mike said:
              >>>
              >>>> I'm after a *simple* script to log each visitor to a website.
              >>>
              >>>i know. see uk.net.web.auth oring[/color]
              >>
              >> Seen and answered, hope you approve (sic).
              >>[color=darkred]
              >>>What is the accepted way to share a message across multiple newsgroups?
              >>>http://smjg.port5.com/faqs/usenet/xpost.html[/color]
              >>
              >> I'll play your fucking stupid game, go on then, what is the
              >> accepted way to share a message across multiple newsgroups?[/color]
              >
              >Well, if you weren't such a dumbass, you'd have clicked on the link that
              >Brucie so kindly supplied to you and you'd have gotten the answer to that
              >question.[/color]

              Are you serious? You are serious aren't you! rofl.
              [color=blue]
              >Here's a hint - if you're asking people for help, don't treat them like an
              >asshole[/color]

              Bzzzzt americanism detected.. can't translate.. abort.. bzzzzt!

              Ahh.. That's why you didn't understand my other post, irony is
              lost on you lot isn't it.

              Here's a hint: I have received other quite reasonable responses
              to which I have replied with similar reasonableness and offered
              my gratitude to. Now go ask yourself why you think I would
              respond differently to our "brucie".

              When you get stuck (as you inevitably will), click this;
              <11jtlzddkxj7f$ .dlg@usenetshit .info> and this;
              <1fft5ouhclfbf. dlg@usenetshit. info>

              hth.

              Comment

              • Disco Octopus

                #8
                Re: Simple information gathering script req..

                Mike typed:[color=blue]
                > I'm after a *simple* script to log each visitor to a website. All
                > I actually need is the visitor's reported IP address whether
                > genuine, proxied or hidden. Their reported browser type would be
                > an advantage, regardless of what browser is actually used.
                >
                > Anyone know of anything simple and preferably free that will do
                > this? The site is hosted on a FreeBSD server with access to
                > CGI-Bin but it does not seem to have a server-side stats log.
                >
                > I am aware of the value (or not) of any information gathered by
                > such means, however I still require it. Just something to log the
                > information presented by each visit please.
                >
                > Many thanks and regards,
                > Mike.[/color]

                maybe you can make something of this.... do you have access to php?

                place it in a standard included header file or somthing...

                <?php
                $logFile = "log.txt";
                $logRec = "REMOTE_ADD R=". $_SERVER["REMOTE_ADD R"] . ",
                HTTP_USER_AGENT =" . $_SERVER["HTTP_USER_AGEN T"];
                $logRec .= "\n";
                $logFP = fopen ($logFile, 'a');
                fputs ($logFP, $logRec);
                fclose($logFP);
                ?>

                Comment

                • Mike

                  #9
                  Re: Simple information gathering script req..

                  added news:uk.net.web .authoring

                  "Disco Octopus" <discooctopusN0 5PAM@yahoo.com> wrote:
                  [color=blue]
                  >Mike typed:[color=green]
                  >> I'm after a *simple* script to log each visitor to a website. All
                  >> I actually need is the visitor's reported IP address whether
                  >> genuine, proxied or hidden. Their reported browser type would be
                  >> an advantage, regardless of what browser is actually used.
                  >>
                  >> Anyone know of anything simple and preferably free that will do
                  >> this? The site is hosted on a FreeBSD server with access to
                  >> CGI-Bin but it does not seem to have a server-side stats log.
                  >>
                  >> I am aware of the value (or not) of any information gathered by
                  >> such means, however I still require it. Just something to log the
                  >> information presented by each visit please.[/color][/color]
                  [color=blue]
                  >maybe you can make something of this.... do you have access to php?[/color]

                  Yes, the site is hosted in a *nix environment so I assume it will
                  work.
                  [color=blue]
                  >place it in a standard included header file or somthing...
                  >
                  ><?php
                  > $logFile = "log.txt";
                  > $logRec = "REMOTE_ADD R=". $_SERVER["REMOTE_ADD R"] . ",
                  >HTTP_USER_AGEN T=" . $_SERVER["HTTP_USER_AGEN T"];
                  > $logRec .= "\n";
                  > $logFP = fopen ($logFile, 'a');
                  > fputs ($logFP, $logRec);
                  > fclose($logFP);
                  >?>[/color]

                  That is excellent and it worked!!! Thank you, thank you, thank
                  you, thank you, thank you, thank you, thank you, thank you, thank
                  you, thank you, thank you, thank you.. etc.

                  It would be better if it worked in a html page mind. As I
                  understand it, google prefers .html pages for indexing, so this
                  can't be used in the home page.

                  But thank you, it is certainly good enough. :-)

                  Regards,
                  Mike.

                  Comment

                  • Geoff Berrow

                    #10
                    Re: Simple information gathering script req..

                    I noticed that Message-ID: <3014hnF2peot0U 1@uni-berlin.de> from Mike
                    contained the following:
                    [color=blue]
                    >That is excellent and it worked!!! Thank you, thank you, thank
                    >you, thank you, thank you, thank you, thank you, thank you, thank
                    >you, thank you, thank you, thank you.. etc.[/color]


                    And you think that $_SERVER['REMOTE_ADDR'] is giving you the IP of the
                    person accessing your page huh?

                    Ah well, as long as you're happy.
                    --
                    Geoff Berrow (put thecat out to email)
                    It's only Usenet, no one dies.
                    My opinions, not the committee's, mine.
                    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

                    Comment

                    • Mike

                      #11
                      Re: Simple information gathering script req..

                      Geoff Berrow <blthecat@ckdog .co.uk> wrote:
                      [color=blue]
                      >I noticed that Message-ID: <3014hnF2peot0U 1@uni-berlin.de> from Mike
                      >contained the following:
                      >[color=green]
                      >>That is excellent and it worked!!! Thank you, thank you, thank
                      >>you, thank you, thank you, thank you, thank you, thank you, thank
                      >>you, thank you, thank you, thank you.. etc.[/color]
                      >
                      >
                      >And you think that $_SERVER['REMOTE_ADDR'] is giving you the IP of the
                      >person accessing your page huh?[/color]

                      No.. The actuall IP is not important, just as long as I get stats
                      that show an IP for each visit.

                      Is is *impossible* to guarantee the ID of visitors to a website.
                      Imagine if everyone visited via aol.com, guardster.com,
                      anonymiser.com or any one of the more dubious offerings from
                      places like stayinvisible.c om.. Such stats would be useless if
                      relied upon for actual identification.

                      However, many people do not know of such facilities, or even why
                      they might use them, and so some stats will give an indication of
                      where *some* traffic originates.

                      This is all I am after:

                      1.) How much traffic.
                      2.) Where does it claim to originate
                      3.) What is the claimed browser (not essential).

                      All I need is the numbers, I have said this repeatedly.
                      [color=blue]
                      >Ah well, as long as you're happy.[/color]

                      It's a start.

                      Comment

                      • Matt Bradley

                        #12
                        Re: Simple information gathering script req..

                        Geoff Berrow wrote:[color=blue]
                        > I noticed that Message-ID: <3014hnF2peot0U 1@uni-berlin.de> from Mike
                        > contained the following:
                        >
                        >[color=green]
                        >>That is excellent and it worked!!! Thank you, thank you, thank
                        >>you, thank you, thank you, thank you, thank you, thank you, thank
                        >>you, thank you, thank you, thank you.. etc.[/color]
                        >
                        >
                        >
                        > And you think that $_SERVER['REMOTE_ADDR'] is giving you the IP of the
                        > person accessing your page huh?[/color]

                        <http://www.phpfreaks.c om/phpref/52.php>

                        Whether this is a person or a bot, whether that person is using a proxy,
                        or whatever, is another matter. But, yes, $_SERVER['REMOTE_ADDR'] will
                        give you the IP address of the requesting client.

                        --
                        Matt Bradley
                        "Myths which are believed in tend to become true"
                        -George Orwell

                        Comment

                        • Mike

                          #13
                          Re: Simple information gathering script req..

                          Matt Bradley <my_name_at@equ aliser.net> wrote:
                          [color=blue]
                          >Geoff Berrow wrote:[color=green]
                          >> I noticed that Message-ID: <3014hnF2peot0U 1@uni-berlin.de> from Mike
                          >> contained the following:
                          >>
                          >>[color=darkred]
                          >>>That is excellent and it worked!!! Thank you, thank you, thank
                          >>>you, thank you, thank you, thank you, thank you, thank you, thank
                          >>>you, thank you, thank you, thank you.. etc.[/color][/color][/color]
                          [color=blue][color=green]
                          >>
                          >> And you think that $_SERVER['REMOTE_ADDR'] is giving you the IP of the
                          >> person accessing your page huh?[/color]
                          >
                          ><http://www.phpfreaks.c om/phpref/52.php>
                          >
                          >Whether this is a person or a bot, whether that person is using a proxy,
                          >or whatever, is another matter. But, yes, $_SERVER['REMOTE_ADDR'] will
                          >give you the IP address of the requesting client.[/color]

                          Indeed.. I have tested it via several different clients and it
                          works very well.


                          Comment

                          • Alan J. Flavell

                            #14
                            Re: Simple information gathering script req..

                            On Wed, 17 Nov 2004, Matt Bradley wrote:
                            [color=blue]
                            > Whether this is a person or a bot, whether that person is using a proxy, or
                            > whatever, is another matter. But, yes, $_SERVER['REMOTE_ADDR'] will give you
                            > the IP address of the requesting client.[/color]

                            or proxy, or gateway.

                            Comment

                            • Richard Watson

                              #15
                              Re: Simple information gathering script req..

                              Mike <find@reply.t o> writes:
                              [color=blue]
                              > It would be better if it worked in a html page mind. As I
                              > understand it, google prefers .html pages for indexing, so this
                              > can't be used in the home page.[/color]

                              There's no real need for a php page to end in .php although that
                              depends on the friendliness of your system admin and/or the ability
                              for you to use some kind of local configuration like .htaccess.

                              Having said that, are you sure "google prefers .html". It would seem
                              odd for a search engine to differentiate based on delivery method.

                              --
                              Richard Watson
                              OpenColo is American Cloud's own Santa Clara data center: 2N power, carrier-neutral connectivity, 24/7 onsite engineers and month-to-month colocation.

                              High Quality, Value for money colocation

                              Comment

                              Working...