[PHP] How to Return 403 Forbidden headers
I have a customer that wants to return a 403 Forbidden header/page when certain conditions are met. I looked through the online manual and all the examples listed would not work. This is what I am using. header(Location: HTTP/1.0 403); PHP tried to send the user to a HTTP/1.0 403 webpage. Any ideas? CDitty -- 03/27/2003, 09:42:13 AM This e-mail and any attachments represent the views and opinions of only the sender and are not necessarily those of Memphis Light, Gas Water Division, and no such inference should be made. == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to Return 403 Forbidden headers
-Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How to Return 403 Forbidden headers header('HTTP/1.0 403 Forbidden'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to Return 403 Forbidden headers
Thanks, but it returns a blank page. Matt Schroebel [EMAIL PROTECTED] 03/27/03 09:52AM -Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How to Return 403 Forbidden headers header('HTTP/1.0 403 Forbidden'); -- 03/27/2003, 09:59:06 AM This e-mail and any attachments represent the views and opinions of only the sender and are not necessarily those of Memphis Light, Gas Water Division, and no such inference should be made. == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to Return 403 Forbidden headers
-Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:59 AM To: Matt Schroebel; [EMAIL PROTECTED] Subject: RE: [PHP] How to Return 403 Forbidden headers Thanks, but it returns a blank page. Works for me in I.E 6. ?php header('HTTP/1.0 403 Forbidden'); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to Return 403 Forbidden headers
For sure, has to be sent before any text and has to be part of a PHP script! Alex Matt Schroebel [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] -Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:59 AM To: Matt Schroebel; [EMAIL PROTECTED] Subject: RE: [PHP] How to Return 403 Forbidden headers Thanks, but it returns a blank page. Works for me in I.E 6. ?php header('HTTP/1.0 403 Forbidden'); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to Return 403 Forbidden headers
What browser are you using... IE has its own 404 pages that it displays when it gets those types of headers. -- Ray On Thu, 2003-03-27 at 08:58, Christopher Ditty wrote: Thanks, but it returns a blank page. Matt Schroebel [EMAIL PROTECTED] 03/27/03 09:52AM -Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How to Return 403 Forbidden headers header('HTTP/1.0 403 Forbidden'); -- 03/27/2003, 09:59:06 AM This e-mail and any attachments represent the views and opinions of only the sender and are not necessarily those of Memphis Light, Gas Water Division, and no such inference should be made. == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to Return 403 Forbidden headers
-Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 11:15 AM To: Matt Schroebel Subject: RE: [PHP] How to Return 403 Forbidden headers Try it in Netscape 7 if you have it. 6.5 showed blank, and if you add html it shows up. H -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to Return 403 Forbidden headers
Almost. It's not the Location Header you want to play with. header(HTTP/1.0 403 Forbidden); will do the job. Serge. On Thu, 27 Mar 2003 09:41:57 -0600 Christopher Ditty [EMAIL PROTECTED] wrote: I have a customer that wants to return a 403 Forbidden header/page when certain conditions are met. I looked through the online manual and all the examples listed would not work. This is what I am using. header(Location: HTTP/1.0 403); PHP tried to send the user to a HTTP/1.0 403 webpage. Any ideas? CDitty -- 03/27/2003, 09:42:13 AM This e-mail and any attachments represent the views and opinions of only the sender and are not necessarily those of Memphis Light, Gas Water Division, and no such inference should be made. == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to Return 403 Forbidden headers
This this point the only thing you have done is overridden the status code. You still have to send something to the browser. HTTP/1.0 403 Forbidden is not a page or a location. It's a result code. You could then do something as simple as: print You are forbidden to view this page; Serge. On Thu, 27 Mar 2003 09:58:49 -0600 Christopher Ditty [EMAIL PROTECTED] wrote: Thanks, but it returns a blank page. Matt Schroebel [EMAIL PROTECTED] 03/27/03 09:52AM -Original Message- From: Christopher Ditty [mailto:[EMAIL PROTECTED] Sent: Thursday, March 27, 2003 10:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How to Return 403 Forbidden headers header('HTTP/1.0 403 Forbidden'); -- 03/27/2003, 09:59:06 AM This e-mail and any attachments represent the views and opinions of only the sender and are not necessarily those of Memphis Light, Gas Water Division, and no such inference should be made. == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php