Giter VIP home page Giter VIP logo

littlebaby's Introduction

about

This is DOS ( Denial of Service ) Shield for CodeIgniter ,originally developed by Tweetycoaster and Saturngod . But I wrote as CodeIgniter helper in order to useful for CodeIgniter developers .

History

During around 2007-09, some of Myanmar sites faced with by some DoS like attacks and some sites are temporatily down by cause of huge CPU usage and bandwidth usage. All sit admins and developers find out some ways which can escape or prevent to that DoS attack. Actually it's difficult to prevent. It's use ordinary HTTP request and vary IP addresses except sending forge large packet size.

###Objectives

to prevent DoS or DDoS attack to prevent from Traffic Jamming to prevent Large amount of CPU usage

###How it works

PHP DoS Shield work on a concept of different accessing time by human visitor and bot attacker. You can set it up minimum average time between one visitor visits and maximum visits in minimum time. That is main point of this code. No human visitors may never visit 90 times during 30 seconds. But bot visitors can visit more than that. :-) When some bot trip our trigger of time trap, our shied a error 503 header to their request and display human readable warning message. If bot was gone shield will automatically remove. And it will send Alert mesages to site admin as ur setup in source code. We record attacker's IP in a Log file under Log folder. We use different error message with PHP brute force detector's 200 message. We want close connection from current attack and prevent large amount of CPU usage and Traffic flooding.

This program based on a PHP timer code which we collected from web written by who-we-don't-remember-name. Special thanks to him/her from here !!!

###Usage

First and foremost you may need to put this Littlebaby_helper.php to your project folder ( to be accurate , application/helper/ ) . Then you may need to load from autoload.php ( from config/autoload.php )

$autoload['helper'] = array('littlebaby');

Then complete your setup . otherwise you can call from your constructor or anywhere you wish . example

$this->load->helper('littlebaby');

Credit

Special thanks to original developers

Tweetycoaster Saturngod

littlebaby's People

Contributors

nainglinaung avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.