Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/megaads-vn/anti-crawl
A PHP package to prevent bot from crawling
https://github.com/megaads-vn/anti-crawl
Last synced: 10 days ago
JSON representation
A PHP package to prevent bot from crawling
- Host: GitHub
- URL: https://github.com/megaads-vn/anti-crawl
- Owner: megaads-vn
- Created: 2017-10-03T01:40:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T04:13:42.000Z (almost 7 years ago)
- Last Synced: 2024-08-18T07:30:05.423Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php anti crawl
require redis
This package use https://github.com/nicolasff/phpredis PHP extension, please make sure this is installed before continuing.
##Installation:
```javascript
composer require megaads-vn/anti-crawl
```
###OR
**add in file composer.json**
```javascript
"require": {
"megaads-vn/anti-crawl":"dev-master"
}
```
config for yii1
```javascript
'components' => array(
"antiCrawl"=>array(
"class" => "application.vendor.megaads-vn.anti-crawl.src.RequestLimits",
"hostname" => "127.0.0.1",
"port" => 6379,
"database" => 1,
"prefix" => "Yii.redis."
)
)
```
use for yii1
```javascript
$isOk = Yii::app()->antiCrawl->check();
```