Quickly rejecting HTTPS (port 443) requests?
Posted: Tue Jan 27, 2026 2:37 pm
Many versions of Safari (on MacOS) have a bug in which if given an http:// url they first try the corresponding https:// url. This causes a 5 second delay in accessing http:// links on an ESP32.
Is there a way to get the ESP32 to quickly reject any HTTPS requests (port 443) so that Safari does not wait 5 seconds for a response.?
I've found resources for setting up an actual https server on an ESP32, but I don't want to incur the overhead of an actual server. I just want to quickly and efficiently inform misguided we browsers that there is no point in sending requests on port 443.
Is there a way to get the ESP32 to quickly reject any HTTPS requests (port 443) so that Safari does not wait 5 seconds for a response.?
I've found resources for setting up an actual https server on an ESP32, but I don't want to incur the overhead of an actual server. I just want to quickly and efficiently inform misguided we browsers that there is no point in sending requests on port 443.