I'm pretty new to web development and just made my second site using Glitch. I was trying to create a trivia site with some creepy surprises. I wanted to implement two main scares: first, detecting if a user switched tabs and accusing them of cheating, and secondly, using the Google Street View API to show a photo near where they are located by reverse geocoding their IP address. I got the street view image to flash for just a fraction of a second before changing pages. After taking a lunch break, I realized my site had a "your connection is not private" message, which also didn't work in the Glitch preview. Clicking through the warning didn't help since my college blocks it. Can anyone help me understand what went wrong, how to fix it, and how to prevent this from happening again?
5 Answers
This sounds a bit sketchy—how does detecting tab switches relate to phishing? The whole vibe of accessing users' locations without clear communication can raise red flags.
Just to clarify, that error you're seeing usually indicates that your HTTPS certificate is not working properly. Fixing that should be your first priority.
Honestly, I would rethink that second scare; it could give users the wrong idea about what your site is doing. There are plenty of other creative ways to add surprises without sounding invasive!
You might be facing that "your connection is not secure" error because of a misconfigured SSL certificate, or you might not have one at all. Plus, for reverse geocoding, just so you know, it's typically only accurate on a country level. Anything more specific can be hit or miss!
That "connection is not private" message usually means your SSL certificate is either expired or not properly configured. You might want to check that out!
Fair point! I wanted it to be fun but I see how it could be taken the wrong way. Thanks for the advice!