Ethernet Login Page

Hi everyone, I made internet connected sensor project. The system senses datas from sensors and sends internet by using ethernet module. I set my IP static. So, all the systems are working fine and i can connect my datas from everywhere.

My problem: i want to add login page my system cause everyone may access my datas when find my global IP but I dont know how to do exactly. I use Ethercard.h library and i create my page by static word homepage() . My codes are at below.

Can you give an advice for create login page and connect login page to data page ?
I glanced some codes about creating login page, I saw CSS codes, Can I add css coded in emit_p() ?

static word homePage() {
  bfill = ether.tcpOffset();
  bfill.emit_p(PSTR(
  "HTTP/1.0 200 OK\r\n"
    "Content-Type: text/html\r\n"
    "Pragma: no-cache\r\n"
    "\r\n"
    "<meta http-equiv='refresh' content='1'/>"
    "<title>Sensor Server</title>" 
    "<h1>Sicaklik: $D C 
Nem: $D % 
 SuSensor1: $S 
SuSensor2: $S 
Isik Siddeti: $L lx 
Hava Kalite: $D ppm</h1>"),
  t, h,deger1stringi,deger2stringi,lux,sensorValue);
  return bfill.position();
}

Sorry for my bad English, thx for helping :smiley: :smiley:

You might use the forum google search in the upper right of this page and search for terms like login, password, cookies, etc, to see previous posting on the subject.

Thank you for your detailed answer