limit google a bit...
This commit is contained in:
parent
81880f7458
commit
c7a152df77
@ -45,6 +45,15 @@ class Index extends Extension
|
|||||||
try {
|
try {
|
||||||
$fast_page_limit = 500;
|
$fast_page_limit = 500;
|
||||||
|
|
||||||
|
if(
|
||||||
|
SPEED_HAX
|
||||||
|
&& strstr($_SERVER["HTTP_USER_AGENT"], "Googlebot") !== false
|
||||||
|
&& count($search_terms) > 1
|
||||||
|
) {
|
||||||
|
// googlebot loves searching for weird combinations of tags...
|
||||||
|
$fast_page_limit = 50;
|
||||||
|
}
|
||||||
|
|
||||||
if (SPEED_HAX && $page_number > $fast_page_limit && !$user->can("big_search")) {
|
if (SPEED_HAX && $page_number > $fast_page_limit && !$user->can("big_search")) {
|
||||||
$this->theme->display_error(
|
$this->theme->display_error(
|
||||||
404,
|
404,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user