[Webserver] Website with password protection
#1
Posted 15 June 2012 - 02:52 PM
#2
Posted 15 June 2012 - 10:11 PM
Hi there, I'm new here and just received my first netduino+.
Until now I wrote a code that provides a webserver which can get information from the browser throug the request (on loading the page). -> When you watch the request you can see there is the path which I use as command (ex. www.google.com/command1)
I start a pc over WOL by opening a special link (ex. www.mydomain.com/wolStartNow).
The problem is that EVERYBODY can open the link and start my pc!
So I would like to protect access by password.
But, (don't forget I'm a netduino and c# beginner) I can't use php on netduino+. Or do I?
So, I tried one thing: Using a javascript code that hashes a username and password from a html-form. The generated hash is the command. Nobody could remember that hash/url if he watched me sending the command.
BUT: The javascript code is so long, that I got an Out-Of-Memory-Exception on the netduino+.
Do you have some ideas how to solve that problem, or how to protect my netduino-html-page with a password?
Thank you very much!
LordOfTheFlakes
The world will have to wait.
#3
Posted 16 June 2012 - 04:24 PM
#4
Posted 16 June 2012 - 08:58 PM
#5
Posted 27 November 2012 - 08:56 PM
#6
Posted 30 November 2012 - 09:23 AM
If you want to PM community member Cuno, he's the expert on this topic...I was able to follow the examples in the book "getting started with the internet of things" to get the netduino setup as a webserver. Its working now using Yaler, but there is no protection on that webpage. How do I go about adding a user/password to secure the webserver so that it is protected?
Chris
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users