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:
@@ -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',
|
||||||
|
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user