Google suggest 404 rather than 403

This commit is contained in:
moodler
2005-05-07 08:17:54 +00:00
parent fb3ec96293
commit 5d3a4bbe9b
+2 -1
View File
@@ -18,8 +18,9 @@
error_reporting(E_ALL);
/// Just say no to link prefetching (Moz prefetching, Google Web Accelerator, others)
/// http://www.google.com/webmasters/faq.html#prefetchblock
if (!empty($_SERVER['HTTP_X_moz']) && $_SERVER['HTTP_X_moz'] === 'prefetch'){
header($_SERVER['SERVER_PROTOCOL'] . ' 403 Prefetch Forbidden');
header($_SERVER['SERVER_PROTOCOL'] . ' 404 Prefetch Forbidden');
trigger_error('Prefetch request forbidden.');
exit;
}