mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Allow other Google thigns into the site too ... in particular translate.google.com
This commit is contained in:
parent
6f80940b1e
commit
2d33fc00d1
@ -245,6 +245,9 @@
|
||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false ) {
|
||||
$USER = guest_user();
|
||||
}
|
||||
if (strpos($_SERVER['HTTP_USER_AGENT'], 'google.com') !== false ) {
|
||||
$USER = guest_user();
|
||||
}
|
||||
}
|
||||
if (empty($_SESSION['USER']) and !empty($_SERVER['HTTP_REFERER'])) {
|
||||
if (strpos($_SERVER['HTTP_REFERER'], 'google') !== false ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user