Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 822901
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:51:54+00:00 2026-05-15T02:51:54+00:00

I am doing my own visitor tracking with special features that Google Analytics (nor

  • 0

I am doing my own visitor tracking with special features that Google Analytics (nor any other) can provide me as it is customized. I was calling this function near the end of my script, but quickly ran into our clients running into thousands of pages being called from bots (I assume Google), and my table filled up with around 1,000,000 useless and deceptive records in the period of a month.

The method most people use is they use Javascript at the bottom of the page, bots don’t operate javascript and so this is an easy fix — but I am looking for PHP solution.

The last thing I did was use PHP’s get_browser:

https://www.php.net/manual/en/function.get-browser.php

and check for the crawler aspect. This didn’t work.

I have looked at this post:
Stopping scripters from slamming your website

But the main solution to that was doing something similar to SO where it brings up a CAPTCHA. My point is not to stop the bots — I want the pages crawled. I simply don’t want to send my visitor tracking data when they are there.

I switched to Javascript solution right now, performing an AJAX request, as our users were getting irritated and the inaccurate statistics.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T02:51:55+00:00Added an answer on May 15, 2026 at 2:51 am

    I’ve never used that function before – interesting.

    Now, all the major search engines will declare themselves with a distinct User-Agent header, which is where I assume this function is getting most of its information from – it’s probably matching the User-Agent value against a lookup table, and it could be that newer indexers are not being identified correctly.

    You could write your own list, and test the $_SERVER[‘HTTP_USER_AGENT’] superglobal against that – but you’d have to monitor for updates.

    It also won’t stop bad or malicious indexers, since they would tend to disguise themselves as a normal browser (just like any other header from the client, User-Agent is not to be trusted).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Drupal you can create your own nodetype in a custom module. Doing this
I am doing my own OS(from scratch) which is not based on any pre-existing
After taking a look at this SO question and doing my own research, it
I am building my own torrent site and after doing some research I have
I don't know what I'm not doing but I simply cannot get my own
I'm creating a web application and will be doing my own testing anyway to
I'm pretty new doing my own CSS changes and I am a little stuck
I have a question. I own a 128mb vps with a simple blog that
I have situation like this: I am doing my own mvc project in visual
I've got my own way of doing this but I'm not convinced its the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.