Google Answers Logo
View Question
 
Q: Web page hits counter for non-existent web pages ( No Answer,   3 Comments )
Question  
Subject: Web page hits counter for non-existent web pages
Category: Computers > Internet
Asked by: businessmentorgroup-ga
List Price: $5.00
Posted: 13 Feb 2006 16:16 PST
Expires: 15 Mar 2006 16:16 PST
Question ID: 445432
Is there an internet service available that can show me the number of
hits on a non-existent webpage?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Web page hits counter for non-existent web pages
From: rssohan-ga on 13 Feb 2006 17:10 PST
 
In general it's difficult if not impossible to tell the number of hits
on a page for which you don't have access to the server log (some
methods like network traffic interception exist but aren't commonly
used).

Assuming you have access to the domain server log, you can examine
that to get the required information.
Subject: Re: Web page hits counter for non-existent web pages
From: muruganantham-ga on 17 Feb 2006 05:48 PST
 
It is possible to find that out through your application.  It is all
depends on what language/script that you used to build your
application.

For example, using Java/J2EE, we have the control to see which request
it is and do count on the 404 error page.

So probably you could give us what exactly you are using, i guess,
that could help us in telling you what it is..
Subject: Re: Web page hits counter for non-existent web pages
From: jrpereira-ga on 07 Mar 2006 20:06 PST
 
If you're on an apache server and can create .htaccess files, you
could try redirecting all requests to some logging script using
mod_rewrite.  See the url below for more info:

http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html

Various scripts like wordpress use mod_rewrite for other purposes like
shorter/more friendly urls (i.e. changing
www.sitename.com/index.php?contentid=thispage" to
"www.sitename.com/thispage.html") - but the basic concept of
redirecting all requests to a single script is the same.

It would take some doing, however you could probably write a pretty
elaborate script to parse any url down to the base files that are
being requested and log whether or not they exist before passing the
user on to either a custom error page, or a generic 404.

Speaking of custom error messages - you might be able to just create
error pages that create an entry in some log any time a 404 occurs.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy