PHPackages                             cleantalk/anti-ddos-lite - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. cleantalk/anti-ddos-lite

ActiveLibrary[Security](/categories/security)

cleantalk/anti-ddos-lite
========================

A small PHP app to protect your site against DDoS attack or crawling web site by bots.

2.0.2(2y ago)1234.1k↓37.5%45GPL-3.0-or-laterPHP

Since Jan 24Pushed 10mo ago6 watchersCompare

[ Source](https://github.com/CleanTalk/anti-ddos-lite)[ Packagist](https://packagist.org/packages/cleantalk/anti-ddos-lite)[ RSS](/packages/cleantalk-anti-ddos-lite/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

DDoS-Protection-Lite
====================

[](#ddos-protection-lite)

[![Build Status](https://camo.githubusercontent.com/1b8b7c70856faf613a58d89145b4d2df182f689c79b75b12bb6ddbdb3d15e934/68747470733a2f2f7472617669732d63692e636f6d2f436c65616e54616c6b2f616e74692d64646f732d6c6974652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/CleanTalk/anti-ddos-lite)

Anti-DDoS-Lite (Anti-Crawler app) is a PHP app to protect your site against DDoS attack or crawling web site by bots.

Description
-----------

[](#description)

Anti-DDoS-Lite helps block bots and reduce server load and stops bad bots before they can reach your original web page. During the opening of the site page, the application performs a JS check and if the check fails, then a blocking page will be displayed.

Most of bots can't execute JavaScript code or can execute code partially. This app filters traffic from bots by using simple JavaScript code. Bots are denied to read original pages, they get only a single stop-page. As a result DDoS attack is reduced by elimination of bots traffic that participating in the DDoS attack.

In the same time, legitimate/real visitors get the original page after a short delay because the browser of legitimate/real visitors executes JavaScript code. The legitimate/real visitors see the stop-page only once, during first visit to the site.

[![](images/stop-page1.png)](images/stop-page1.png)

How to use
----------

[](#how-to-use)

1. Include the app as first line in index.php by various way:

**A** Download, unzip and include the app:

```

```

**B** Or install the app by composer package:

```
composer require cleantalk/anti-ddos-lite

```

```
