Question
Preventing saved web pages submitting data
Hi,
whilst someone was messing around with a simple site I built (literally just a guestbook thing using all the DW behaviours) they found something I hadn't really thought about.
They could save the web page with the form on, to their desktop. They could then use this saved form to submit data to the webserver.
This got me thinking. If I was to use hidden form elements to control the behaviour of the submitted data (for example, <input name="dataaction" value="add">), in theory someone could save the page, change the value to 'delete' and I don't really need to say any more!
So my question is this - what's the best way to make sure only pages served by the webserver can do anything (to disable pages being able to be saved and edited)? I guess this can also apply to URL tampering...
HTTP_REFERRER seems to be a little unreliable!
I'd rather know how to do this using DW behaviours or something, but if not then any solution will do.
I'm interested in solutions for ASP and PHP.
Thanks in advance.
whilst someone was messing around with a simple site I built (literally just a guestbook thing using all the DW behaviours) they found something I hadn't really thought about.
They could save the web page with the form on, to their desktop. They could then use this saved form to submit data to the webserver.
This got me thinking. If I was to use hidden form elements to control the behaviour of the submitted data (for example, <input name="dataaction" value="add">), in theory someone could save the page, change the value to 'delete' and I don't really need to say any more!
So my question is this - what's the best way to make sure only pages served by the webserver can do anything (to disable pages being able to be saved and edited)? I guess this can also apply to URL tampering...
HTTP_REFERRER seems to be a little unreliable!
I'd rather know how to do this using DW behaviours or something, but if not then any solution will do.
I'm interested in solutions for ASP and PHP.
Thanks in advance.
