Grant Connections only from a website | Telit Cinterion IoT Developer Community
January 2, 2017 - 4:22pm, 1433 views
I have an app in which I receive http requests built on my BGS5T. Currently, I'm managing the host to connect into the webserver by IP. My website has a static IP which I can use to connect or not into my app. However, this is not the best behaviour. In long term, my website might change its provider, changing its IP, what would make me change the configuration. What I ask is this: is there anyway to allow or block connections via website name? Something like
String website = "www.dummy.com"
if socket.websitename == www.dummy.com
} else socket.close();
Thanks in advance