Changeset 72804 in spip-zone for _core_/securite/ecran_securite.php


Ignore:
Timestamp:
May 13, 2013, 9:21:22 PM (9 years ago)
Author:
cedric@…
Message:

Report de http://core.spip.org/projects/spip/repository/revisions/20520 et http://core.spip.org/projects/spip/repository/revisions/20521 :
mise a jour de _IS_BOT et version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _core_/securite/ecran_securite.php

    r70513 r72804  
    66 */
    77
    8 define('_ECRAN_SECURITE', '1.1.5'); // 8 mars 2013
     8define('_ECRAN_SECURITE', '1.1.6'); // 13 mai 2013
    99
    1010/*
     
    2424        define('_IS_BOT',
    2525                isset($_SERVER['HTTP_USER_AGENT'])
    26                 AND preg_match(',bot|slurp|crawler|spider|webvac|yandex|INA dlweb|EC2LinkFinder|80legs,i',
    27                         (string) $_SERVER['HTTP_USER_AGENT'])
     26                AND preg_match(
     27            // mots generiques
     28            ',bot|slurp|crawler|spider|webvac|yandex|'
     29            // UA plus cibles
     30            . '80legs|accoona|AltaVista|ASPSeek|Baidu|Charlotte|EC2LinkFinder|eStyle|Google|INA dlweb|Java VM|LiteFinder|Lycos|Rambler|Scooter|ScrubbyBloglines|Yahoo|Yeti'
     31            . ',i',(string) $_SERVER['HTTP_USER_AGENT'])
    2832        );
    2933
     
    306310
    307311?>
     312
Note: See TracChangeset for help on using the changeset viewer.