tomsdiecastcars Posted October 24, 2010 Posted October 24, 2010 Hello guys, Is there any users online counter that work with a SSL secure site that are free? I used to use whos.amung.us but then recently i got SSL Installed. now the only way to use that is to get PRO Account. Is there any free counters?
MrPhil Posted October 24, 2010 Posted October 24, 2010 I see that this particular counter gets a copy of the Javascript from their website under http:. I presume that your complaint is that it's causing a browser warning about insecure content on a secure page? First question: do you need to have this counter on your secure pages (login, credit card info, etc.)? Surely you're not putting your entire site under SSL! (You just enable SSL, give the proper HTTPS_* setting, and osC puts only the needed pages under SSL.) If you've put the counter HTML code in some common file, you'll need to put some PHP code around it to not invoke it on SSL-protected pages. The exact code escapes me at the moment, but IIRC it's quite simple. Search for it. An alternative might be to grab and save a copy of their .js file from their site and serve it from your own site. This way, it would be under SSL on your SSL pages (if you give only the path to the file, not a full URL). However, you would need to check if the license prohibits this, whether their code is static enough to do this (or is each copy served "personalized" in some way), and whether it in turn pulls in something else from their site. This approach will require some investigation.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.