I know it's not pretty, but is this all I have to do to send Google (and friends) a 404? header("HTTP/1.0 404 Not Found"); echo '404 not found'; exit; Code (markup):
That would work. And since PHP 4.3.0, you can do it this way as well. header(' ', true, 404); exit(); PHP: