We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How to exclude IP from Page Loads Throttling?

Development and Programming

ustict's avatar
ustict
6 posts
13 years ago
ustict's avatar ustict

Hi, How to exclude certain IP number from being lockout of Maximum Number of Page Loads? In my company, there are about 500+ user accessing my website from different office but using the same IP. I need to exclude it because my Maximum Number of Page Loads set to 20

       
Dan Decker's avatar
Dan Decker
7,338 posts
13 years ago
Dan Decker's avatar Dan Decker

Hi ustict,

I had to carry this up to the Engineers, but we have a modification you can make.

Open system/expressionengine/libraries/Throttling.php around line 42, you could add in a check for that IP:

function run()
{
 // Add the below- change 123 to the relevant ip addy
 if ($this->EE->input->ip_address() == '123')
 {
  return;
 }
 // End addition
 
 if ( ! is_numeric($this->EE->config->item('max_page_loads')))
 {
  return;
 }

Now, this is a supported change, since I’m telling you to do it. What you will need to do is keep up with it through update made to ExpressionEngine, so that it stays in effect.

I’m going to move this into Development and Programming, but will subscribe to the thread to keep up with your progress!

Cheers,

       
ustict's avatar
ustict
6 posts
13 years ago
ustict's avatar ustict

Hi, Thank you for the solution.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.