Thread HTML Login Seite ohne php vor CSRF Angriffe schützen (32 answers)
Opened by Rambo at 2020-01-10 14:53

Rambo
 2020-01-10 14:53
#191089 #191089
User since
2003-08-14
803 Artikel
BenutzerIn

user image
Hallo zusammen,
wie kann ich eine Login Seite in html geschrieben vor CSRF Angriffe schützen wenn ich KEIN PHP zur Verfügung habe.
Ein js Script darf ich nutzen.
Fall jemand ein Beispiel hat..... 1000 Danke im Voraus
Beispiel für die Login Seite:
Code: (dl )
1
2
3
4
5
6
7
8
9
<form id="LoginForm" action="<?login_path?>" method="post">
<label class="control-label" for="username"><small>Username</small></label>
<div><input id="focus" type="text" name="httpd_username" value="" autofocus></div>
<br>
<label class="control-label" for="password"><small>Password</small></label>
<div><input type="password" name="httpd_password" value=""></div>
<br>
<input type="submit" name="submit" value="Login">
</form>


Alles was ich bis dato gefunden habe nutzt php
Besten Dank im Voraus
VG TBC

View full thread HTML Login Seite ohne php vor CSRF Angriffe schützen