PHP Classes

File: application/config/hooks.php

Recommend this page to a friend!
  Classes of Leonardo Feitosa   Rate Limit Code Igniter Hook   application/config/hooks.php   Download  
File: application/config/hooks.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: Rate Limit Code Igniter Hook
Block computer IP addresses that access many times
Author: By
Last change:
Date: 2 months ago
Size: 587 bytes
 

Contents

Class file image Download
<?php
defined
('BASEPATH') OR exit('No direct script access allowed');

/*
| -------------------------------------------------------------------------
| Hooks
| -------------------------------------------------------------------------
| This file lets you define "hooks" to extend CI without hacking the core
| files. Please see the user guide for info:
|
| https://codeigniter.com/user_guide/general/hooks.html
|
*/

$hook['post_controller_constructor'] = array(
   
'class' => 'ratelimit',
   
'function' => 'limit_all',
   
'filename' => 'ratelimit.php',
   
'filepath' => 'hooks'
);