aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2011-08-26 05:59:13 -0400
committerNils Adermann <naderman@naderman.de>2011-08-26 05:59:13 -0400
commitdc9a7714734f9ce69e1e83a80cf40445c59761bf (patch)
treea4a6872a32a844cf51e7a8d72b45a96e5342b66f /phpBB/includes/functions.php
parent0d4089da7fab3c4e2f177ad62bed142d4df181e1 (diff)
parent7a36c3b34b82f7470d77e1028375ae14db6874be (diff)
downloadforums-dc9a7714734f9ce69e1e83a80cf40445c59761bf.tar
forums-dc9a7714734f9ce69e1e83a80cf40445c59761bf.tar.gz
forums-dc9a7714734f9ce69e1e83a80cf40445c59761bf.tar.bz2
forums-dc9a7714734f9ce69e1e83a80cf40445c59761bf.tar.xz
forums-dc9a7714734f9ce69e1e83a80cf40445c59761bf.zip
Merge remote-tracking branch 'github-bantu/ticket/10335' into develop-olympus
* github-bantu/ticket/10335: [ticket/10335] Add X-PHPBB-IS-BOT header so reverse proxies know about bots.
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 6b6679bde5..df49bdf637 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -4641,6 +4641,12 @@ function page_header($page_title = '', $display_online_list = true, $item_id = 0
header('Expires: 0');
header('Pragma: no-cache');
+ if (!empty($user->data['is_bot']))
+ {
+ // Let reverse proxies know we detected a bot.
+ header('X-PHPBB-IS-BOT: yes');
+ }
+
return;
}