• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

hiding the hit counter

How do I hide the hit counter, so that Only I can view it(and telling me to use afont color the same as my backround is not the right answer)
  • 2
  • 2
1 Solution

     I while back I actually deliberated over this exact question.  How to use the FP hitcounter, and not give away to the visitors how many hits I've got.

     Before I could actually test my answer, my hosting service began providing hit data using marketwave.com services.

     But here is what I came up with, and be warned, its VERY primative!  heh

     Set your site up as a frame.  Only have the bottom frame be one pixel in height with that page having the counter, and the rest of your site being the upper component of the frame.  If you match up backgrounds, and remove resize as well as the frame border, no one should be the wiser (unless they view your HTML source).  When your visitors see the site, they will load a hit on the counter but not be able to see it.  Then all you have to do is load the specific frame page directly (not through the frame) and wala!  You get to see the hit counter!

     Like I said....very primative, but it should work.

(it might work even better if you set the bottom frame height to zero....but I don't think you can do that)

tnicholsonAuthor Commented:

sounds like an excellent Idea exept how do I load the frame with the hit counter on it, and if it makes a difference I will be probably using the hit counter component that comes with FP 2000


     What I propose is a frameset with two frames.  A "main" one and a "counter" one.  Only no one will be able to see the second because the frameset configuration will prevent it from being seen.

Here is what you do.  Name your main page "main.htm" and create another page named "counter.htm" and place your counter on it.  Create a third page, but cut and paste the code below  completly as the HTML for this third page.  This will be your frameset.  It needs to be named "index.htm" or something that will be the page people load when they view your site.


<title>My Web Site</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">

<frameset rows="*,0">
  <frame name="main" src="main.htm">
  <frame name="counter" scrolling="no" noresize target="main" src="counter.htm">

  <p>This page uses frames, but your browser doesn't support them.</p>



Again, your primary page will be the "main" page, your counter will be located on the "counter" page, but people will need to load the "index" page so they will load a hit on the counter.

So...    The URL for folks will be http://www.yourdomain.com/index.htm  But when YOU want to see the counter, load http://www.yourdomain.com/counter.htm and you will see it.  

The weakness here is that anyone that looks at the "index.htm" source will see the address where your counter is located.  So you will only be hiding the counter from basic or casual visitors.

tnicholsonAuthor Commented:
exellent answer thank you

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now