megaads-vn/anti-crawl

Anti crawl module


Keywords
megaads-vn, anti-crawl
License
MIT

Documentation

php anti crawl

require redis This package use https://github.com/nicolasff/phpredis PHP extension, please make sure this is installed before continuing. ##Installation:

composer require megaads-vn/anti-crawl

###OR add in file composer.json

"require": {
	"megaads-vn/anti-crawl":"dev-master"
}

config for yii1

    'components' => array(
        "antiCrawl"=>array(
            "class" => "application.vendor.megaads-vn.anti-crawl.src.RequestLimits",
        )
    )

use for yii1

$isOk = Yii::app()->antiCrawl->check();