![]() |
| Bogus Form Submissions (ASP Form Pages) - Crossposting |
|
jamie
HostMySite Sales Rep
![]()
|
Crossposted from the Email Category
We have been seeing an increasing number of these 'bogus' form submissions with clients of ours that have online email forms, and have developed a way to prevent such submisssions. If your are using ASP for your form, simply add the code below to the top of your form's ACTION page: <% if Request.ServerVariables("HTTP_REFERER") <> "http://yourdomain.xyz/yourForm.html" then response.redirect("http://yourdomain.xyz/someErrorpage.html") end if %> Note that this script: http://yourdomain.xyz/yourForm.html - this is the page where your actual form is http://yourdomain.xyz/someErrorpage.html - this is the page you want the user to be redirected to if they try and post information to your form from some location other than your form page. |
||||||||||||
|
|
|||||||||||||
| Bogus Form Submissions (ASP Form Pages) - Crossposting |
|
||
|



