Is there a way to prevent the hit counter from registering hits from my computer?
Is there a way to prevent the hit counter from registering hits from my computer?
I thought of an IP ban but that would not be correct.
You could wrap the contents of the /includes/counter.php file inside an IF statement such as this one:and then put your own IP address in the Down For Maintenance list of allowed IP Addresses.Code:if (!strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR']) { ... }
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Very clever, that should work. Gracias.
Bookmarks