diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-09-21 22:20:34 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-09-21 22:20:34 +0000 |
| commit | 650a1077d20d8f9a253027dfb16b956fe5d87022 (patch) | |
| tree | ead8956388b89c8c2c039d67039aaec9cad10193 /includes/session_spider.php | |
| parent | 7e90cd511e41737745e3076fcb6b1114d9e0876f (diff) | |
| download | webtrees-650a1077d20d8f9a253027dfb16b956fe5d87022.tar.gz webtrees-650a1077d20d8f9a253027dfb16b956fe5d87022.tar.bz2 webtrees-650a1077d20d8f9a253027dfb16b956fe5d87022.zip | |
Remove search-spider check for unauthorised pages - this duplicates code in session.php, and can never be reached.
Diffstat (limited to 'includes/session_spider.php')
| -rw-r--r-- | includes/session_spider.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/includes/session_spider.php b/includes/session_spider.php index 5565cffb22..c9dae20b1f 100644 --- a/includes/session_spider.php +++ b/includes/session_spider.php @@ -313,20 +313,6 @@ if(!$real) { Zend_Session::setId(gen_spider_session_name($spider_name, "")); } -// stop spiders from accessing certain parts of the site -$bots_not_allowed = array( -'/reports/', -'/includes/', -'config', -'clippings', -'gedrecord.php' -); -if ($SEARCH_SPIDER && in_array(WT_SCRIPT_NAME, $bots_not_allowed)) { - header("HTTP/1.0 403 Forbidden"); - print "Sorry, this page is not available for search engine bots."; - exit; -} - // Manual Search Engine IP Address tagging // Allow an admin to mark IP addresses as known search engines even if // they are not automatically detected above. Setting his own IP address |
