I have a handler set up in apache for html files.
I want this handler to return a 403 Forbidden error for certain IP addresses.
How do I return a 403 header in perl.
If i just do this
Code:
print "HTTP/1.1 403 Forbidden\n\n";
It gives me a 500, and the log says
Quote:
malformed header from script. Bad header=HTTP/1.1 403 Forbidden
|
Am I being thick, or am I just not supposed to do it like this.
Cheers