Reply to topic
Bogus Form Submissions (ASP Form Pages) - Crossposting
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 766
Location: Newark, De
Reply with quote
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
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic