Help - Search - Members - Calendar
Full Version: Form problems
HTMLHelp Forums > Web Authoring > General Web Design
Egor
Well, I got in trouble with simple things again dry.gif
Advice is needed!

CODE
  
<form action="http://bla-bla-bla.../form.php" method="post" name="require"> // exact directory of file
...
<input type="hidden" name="recipient" value="my email" />
<input type="hidden" name="email" value="email" />
<input type="hidden" name="subject" value="bla-bla-bla />
<input type="hidden" name="redirect" value="http address" />


But what I get is what I didnt expect to - an executive error:

"The form was not submitted for the following reasons:
You are coming from an unauthorized domain.
Please use your browser's back button to return to the form and try again."


how to fix this thing? is it .htaccess or smth?

thanx in advance
Brian Chandler
It's something to do with the form script - without looking at the script, it's impossible to tell what exactly.
pandy
QUOTE
You are coming from an unauthorized domain.

So are you? Is the script on another domain than the form?
Brian Chandler
QUOTE(pandy @ Feb 24 2008, 03:12 AM) *

QUOTE
You are coming from an unauthorized domain.

So are you? Is the script on another domain than the form?


Well, what is an "unauthorised domain"? I don't believe there is an http concept of an "unauthorised domain", rather, it all depends on the script. Probably it's written only to allow a call with a certain referrer, or something. But we can't know without seeing the script.

AAMOF, is there any way reliably to determine where the "form" was? I don't think so - the referrer is optional and can be fudged too.
Darin McGrew
QUOTE
AAMOF, is there any way reliably to determine where the "form" was? I don't think so - the referrer is optional and can be fudged too.
Someone could disable the Referer header and sneak by, but most users won't. It's the same with rewrite rules that block access to images if the Referer header indicates another domain. You don't have to block 100% of the unwanted traffic. You just have to block enough of it that it is no longer worth it for other webmasters to abuse your server.
pandy
That doesn't stop someone from writing a script so a certain referer is requered and return such an error message if the referer doesn't match. It's worth sorting out if that's the case here.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.