Block access to web server on specified interface
Posted: Thu Mar 19, 2020 11:58 am
Hi all!
Currently I've been playing with HTTP server on ESP32. Works nearly perfect, I've implemented even some simple CORS-related features. But now there is a little problem - I could make HTTP requests to my ESP32 on both wireless interfaces - STA and AP, but I'd like to restrict access only for clients connected to Soft AP generated by ESP. In other words: HTTP server shall not respond to requests received from wireless net which ESP connects to as a station.
Are there any options to do that? Block ports on specified interface? Filter requests on HTTP server level? But how? I can't see any function/library/API which may help with this.
Jakub
Currently I've been playing with HTTP server on ESP32. Works nearly perfect, I've implemented even some simple CORS-related features. But now there is a little problem - I could make HTTP requests to my ESP32 on both wireless interfaces - STA and AP, but I'd like to restrict access only for clients connected to Soft AP generated by ESP. In other words: HTTP server shall not respond to requests received from wireless net which ESP connects to as a station.
Are there any options to do that? Block ports on specified interface? Filter requests on HTTP server level? But how? I can't see any function/library/API which may help with this.
Jakub