Philip M
10-08-2002, 07:15 PM
I hope I have posted this in the right forum.
On my site I have an on-line order form which transmits using
a modified version of Formmail.
For security reasons, if a form is submitted with the HTTP_REFERER blank (or not my domain) then access is denied and an error message is returned. I also record details of submissions (successful or otherwise) in an error file. (Some failed submissions arise because the form is not correctly completed).
Here is a fragment of the PERL script:-
open (ERRORFILE, '>>Errors.fil' );
print ERRORFILE ("$date\n");
print ERRORFILE ("$ENV{'HTTP_REFERER'}\n");
print ERRORFILE ("$ENV{'REMOTE_ADDR'}\n");
print ERRORFILE ("$ENV{'REMOTE_HOST'}\n");
print ERRORFILE ("$ENV{'HTTP_USER_AGENT'}\n\n");
close (ERRORFILE);
Examining the Errorfile shows that sometimes customers fill in the
form properly but access is denied them as the HTTP-REFERER is blank.
Here is an example:-
Sunday, October 6, 2002 at 19:41:58
62.252.224.8
cache5-leed.server.ntli.net
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.1.4.0; .NET CLR 1.0.3705)
Access was denied and an error message screen was displayed.
The customer then did something to correct the situation and re-submitted his
form successfully:-
Sunday, October 6, 2002 at 19:42:24
http://www.mydomain.co.uk/orderform.html
62.252.224.8
cache5-leed.server.ntli.net
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.1.4.0; .NET CLR 1.0.3705)
Note that it took only 26 seconds for the customer to read the error message screen (several lines of text), and do whatever he did to reinstate the HTTP_REFERER.
My question is:-
a) How does it arise that the HTTP_REFERER in the browser
address box can be a blank?
b) What did my customer do to re-instate this in his browser?
Is it something to do with the browser configuration, a firewall, or
anti-virus program?
Any comments or advice would be appreciated.
On my site I have an on-line order form which transmits using
a modified version of Formmail.
For security reasons, if a form is submitted with the HTTP_REFERER blank (or not my domain) then access is denied and an error message is returned. I also record details of submissions (successful or otherwise) in an error file. (Some failed submissions arise because the form is not correctly completed).
Here is a fragment of the PERL script:-
open (ERRORFILE, '>>Errors.fil' );
print ERRORFILE ("$date\n");
print ERRORFILE ("$ENV{'HTTP_REFERER'}\n");
print ERRORFILE ("$ENV{'REMOTE_ADDR'}\n");
print ERRORFILE ("$ENV{'REMOTE_HOST'}\n");
print ERRORFILE ("$ENV{'HTTP_USER_AGENT'}\n\n");
close (ERRORFILE);
Examining the Errorfile shows that sometimes customers fill in the
form properly but access is denied them as the HTTP-REFERER is blank.
Here is an example:-
Sunday, October 6, 2002 at 19:41:58
62.252.224.8
cache5-leed.server.ntli.net
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.1.4.0; .NET CLR 1.0.3705)
Access was denied and an error message screen was displayed.
The customer then did something to correct the situation and re-submitted his
form successfully:-
Sunday, October 6, 2002 at 19:42:24
http://www.mydomain.co.uk/orderform.html
62.252.224.8
cache5-leed.server.ntli.net
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461; Hotbar 4.1.4.0; .NET CLR 1.0.3705)
Note that it took only 26 seconds for the customer to read the error message screen (several lines of text), and do whatever he did to reinstate the HTTP_REFERER.
My question is:-
a) How does it arise that the HTTP_REFERER in the browser
address box can be a blank?
b) What did my customer do to re-instate this in his browser?
Is it something to do with the browser configuration, a firewall, or
anti-virus program?
Any comments or advice would be appreciated.