1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Added HTTP 503 header to sitedown.php and additional bot to robots list.

This commit is contained in:
Cameron
2021-03-31 12:14:18 -07:00
parent 2904f1e792
commit 90ba858059
2 changed files with 4 additions and 0 deletions

View File

@@ -409,6 +409,7 @@ class e_user_model extends e_admin_model
'SearchSight', 'SearchSight',
'Seekbot', 'Seekbot',
'semanticdiscovery', 'semanticdiscovery',
'SemrushBot',
'Sensis Web Crawler', 'Sensis Web Crawler',
'SEOChat::Bot', 'SEOChat::Bot',
'SeznamBot', 'SeznamBot',

View File

@@ -21,6 +21,9 @@ if (!varset($pref['maintainance_flag']) && !getperms('0')) // Allow main admin t
} }
header('Content-type: text/html; charset=utf-8'); header('Content-type: text/html; charset=utf-8');
header('HTTP/1.1 503 Service Temporarily Unavailable');
header('Status: 503 Service Temporarily Unavailable');
header('Retry-After: 3600'); // in seconds
e107::includeLan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE); e107::includeLan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);