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 7900691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:01:56+00:00 2026-06-03T09:01:56+00:00

I had to write a page hit counter for our site. (customers only) I

  • 0

I had to write a page hit counter for our site. (customers only)
I know my counter is being abused by some customers, and they wrote an application that hit the page several time during the day.

Is it possible to affect the hit counter by requesting the page using .Net WebClient for example??
I’m trying to figure there method and how to counter fight it.

Thank you

  • 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-06-03T09:01:57+00:00Added an answer on June 3, 2026 at 9:01 am

    Is it possible to affect the hit counter by requesting the page using .Net WebClient for example?

    Absolutely. If the customer puts enough work into getting cookies, user-agent strings, and secondary requests (e.g. requesting the JavaScript and CSS resources referenced by the page) right, it is impossible for the server to tell whether a request came from .NET’s WebClient or from a real web browser.

    But there’s another problem: the customers don’t even need to put a lot of effort into writing programs that automatically load your site and take some actions. With tools like Selenium, they can write scripts that actually load a web browser and then take the same actions that a real live user might take. So even if you modify your hit counter to include some mythical super-sophisticated check for requests from a real web browser, you’ll still be thwarted by users who fire up a real web browser to make automated requests to your site.

    I’m trying to figure there method and how to counter fight it.

    Without the code for this hit counter, I can’t suggest too many improvements that would limit the customers’ ability to increase the hit counter by writing programs. You could use a CAPTCHA, but that’s an awfully big inconvenience for the honest customers.

    You say that you know that some customers are abusing the site. Presumably, you know who these customers are, and there are some generally useful techniques for making dishonesty not pay. You could kick those customers off the site since they’re being dishonest. In a somewhat less drastic measure, you could include a blacklist of customer usernames that your hit counter ignores, and then those customers’ programs won’t actually affect the hit counter. In an even gentler measure that will be almost invisible to those customers, you could make page loads slower for those customers, which would limit the effects of their nefarious behavior.

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

Sidebar

Related Questions

Suppose I only had the regular J2SE http libraries but wanted to write a
I had to write some queries to show specific products on my homepage. However,
Our Dev team had been developing enterprise web page more than 2 years ago.
I've not had to write much batch file code in the past and I'm
Recently I had to write an oracle function, and the error ora-06575 popped up
I have experience with OCaml. You had to write a stub for every function
I just finished creating several models and a had to separately write all of
I had the idea to write a matrix division in Haskell as Muliply A*
I had a task to write simple game simulating two players picking up 1-3
I had a task to write simple game simulating two players picking up 1-3

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.