A
form on my site has stopped working. It used to work but if I submit now it throws a 403 error. The form HTML is generated and then processed with a PHP script. It has worked in the past but something must have changed on the server.
I have just isolated the problem.
If I disable mod_security the form works ok (but I don't want to do this).
The form submits the contents of a text box which includes a URL. mod_security clearly no longer likes me submitting text parameters that are URLs ie anything looking like "http://www.asitehere.com/". It works if I remove the "http://" bit from the front.
I use the form to dynamically add URL links to a database table and I want them to be the full URL.
So my question is how do I submit a URL that the user has typed in without mod_security going crazy?
I do not want to exclude the http:// bit of the URL because other people use the site and they will never remember to exclude it ... and a 403 error isn't going to help them when they forget.
My only thoughts are to use javascript to store a hidden version of the url that is typed in but strip off the http bit. It could then be reattached before being written into the database.
Any help would be appreciated!
Thanks,
Matt