Hit Counters

adalt's picture

They have: 72 posts

Joined: Dec 2000

Hi,
I would like to know if it is possible to add a hit counter to a page or site so that it is only visible by me ??

Thanks

Tony

mjames's picture

They have: 2,064 posts

Joined: Dec 1999

I don't know about ones visible by just you, but you can get a great invisible one to everyone at SiteMeter.com.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

yes you can do that, but you need to use a server-side language.

Just use REMOTE_ADDR to get the IP of the client, if it's your IP, show the count. This only works if you have a static IP.

Mark Hensler
If there is no answer on Google, then there is no question.

mjames's picture

They have: 2,064 posts

Joined: Dec 1999

Quote: Originally posted by Max Albert
yes you can do that, but you need to use a server-side language.

Just use REMOTE_ADDR to get the IP of the client, if it's your IP, show the count. This only works if you have a static IP.

Not sure if I'm following you, but I don't think you need a server-side language to do what I suggested. SiteMeter has an option to change the tracker's color in the manager and you can change it to your site's background to make it invisible. Nothing else required.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Marc James-
anyone can see it if they highlight it or view source...

If you use a server-side language, you can determin the IP of the visitor.
If the visitor is not you, don't PRINT the count at all. You'll increment the count, you just won't print the count to the browser.

This only works if you have a static IP.

Whatever suites you best... hiding it by matching the bgcolor may be all you need.

Mark Hensler
If there is no answer on Google, then there is no question.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.