Return 403 from mod_perl program

M

Mike Mimic

Hi!

I have a mod_perl program and I would like that the client
viewing it would get a 403 response if some criteria are
matched. Otherwise it should output normal page (program's
normal output).

How can I do this?


Mike
 
G

Gunnar Hjalmarsson

Mike said:
I have a mod_perl program and I would like that the client
viewing it would get a 403 response if some criteria are
matched. Otherwise it should output normal page (program's
normal output).

How can I do this?

By printing it (as a header):

print "Status: 403 Forbidden\n";
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,616
Members
45,306
Latest member
TeddyWeath

Latest Threads

Top