akaunting/laravel-firewall

How do you allow google crawlers only if firewall.bot is enabled?

Opened this issue · 1 comments

How can I allow only google crawlers if firewall.bot is enabled and how to test if works fine?

Currently my firewall config looks like:

'bot' => array (
    'enabled' => true,
    'methods' => 
    array (
        0 => 'all',
    ),
    'routes' => 
    array (
        'only' => 
        array (
        ),
        'except' => 
        array (
        ),
    ),
    'crawlers' => 
    array (
        'allow' => 
        array (
            0 => 'GoogleSites',
        ),
        'block' => 
        array (
        ),
    ),
    'auto_block' => 
    array (
        'attempts' => 5,
        'frequency' => 1 * 60,
        'period' => 30 * 60,
    ),
),

It's fine or I need to change anything?

Bump