I have created a website that will be hosted on an Arduino web server.This is used to convert speech to text, send it back to the Arduino server. The received string is then printed on an LCD. Basically, it is a voice based notice board that can be used in an institution.
To allow access to this website to specific users only, I have created a login form that can be seen in this link: http://176.32.230.47/noticeboard.com/php/index.php
After successful login, it redirects to a page that looks something like this: the mainpage which is in-turn used to access one of the Arduino web servers in the LAN
As evident in this main-page, the buttons for the classes will be used to redirect to the Arduino web-server in that particular class. Let me say the ip address of one such server is 192.168.1.5. The problem is, I don't want other users on the same LAN to be able to access the website hosted on the Arduino by typing it's ip address in their browsers.
How can I make this page on the Arduino web server accessible only after login? It shouldn't be in such a way that by simply typing the ip address of the Arduino, one can access the web page hosted on it. I don't know if Arduino web server can hold php files so that I can include the following piece of code:
session_start();
if($_SESSION['id']==null)
header("Location:"name_of_the_file_i_want_to_redirect_to.php");
If the Arduino web-server can be accessed by anyone on the LAN, the whole objective of this log in system is lost. Kindly help me.
PS: The login page and the main-page( the one that is used to re-direct to the appropriate website served by one of the Arduinos in the LAN) are hosted on a different server.