You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 86 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Nuke 8.0 Sorry, too many page loads in so little time [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
arnoldkrg
Major
Major


Joined: Aug 03, 2003
Posts: 936

Location: United Kingdom

PostPosted: Thu Sep 28, 2006 7:55 am Reply with quoteBack to top

If you see this message when trying to open the Forums admin page, it is caused by the new antiflood/dos attack prevention system. This writes the user's ip address and the microtime of the page load to the nuke_antiflood table each time the user loads a page. If there are 3 page loads in 2 seconds, the antiflood dies the script and puts up the "Sorry, too many page loads in so little time" message. Unfortunately, there are 4 page loads to view the Forums admin page. Each frame counts as a page load and they add up to four. So whenever you view the Forums admin page you exceed the limit and the page shuts down with the message. So the page loads criterium is too severe for the Forums admin page. (I cant believe they didnt test this)

Solution. In includes/ipban.php find near the bottom:
Code:
if ($numrow >= 3) {
   echo "<br><br><center><b>Sorry, too many page loads in so little time!</b></center>";
   die();
}


and change to:
Code:
if ($numrow >= 5) {
   echo "<br><br><center><b>Sorry, too many page loads in so little time!</b></center>";
   die();
}


This will allow sufficient page loads to view the frames in Forums admin, without disabling the antiflood system altogether.

_________________
Image
Find all posts by arnoldkrgView user's profileSend private messageSend e-mailVisit poster's website
dezina
Support Mod
Support Mod


Joined: Jun 09, 2003
Posts: 1713

Location: England

PostPosted: Sat Sep 30, 2006 1:20 am Reply with quoteBack to top

Thanks, cures problem
Wink

_________________
Image
Backup files BEFORE altering
Use PHPNuke 7.6 with patches!!
No private messages please, POST in forums.
Find all posts by dezinaView user's profileSend private messageVisit poster's website
alquimistax
Nuke Cadet
Nuke Cadet


Joined: Oct 19, 2006
Posts: 1


PostPosted: Thu Oct 19, 2006 4:58 am Reply with quoteBack to top

Hello.... How could i disable the antiflood system in my php nuke 8.0?

Greetings
Find all posts by alquimistaxView user's profileSend private message
scribby
Nuke Soldier
Nuke Soldier


Joined: Apr 25, 2005
Posts: 25


PostPosted: Thu Oct 19, 2006 6:03 am Reply with quoteBack to top

To disable it just remove the code:

Code:
if ($numrow >= 3) {
   echo "<br><br><center><b>Sorry, too many page loads in so little time!</b></center>";
   die();
}

_________________
[URL=http://www.scribbytech.com/]SCRIBBYTECH[/url]
Find all posts by scribbyView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.685 Seconds - 361 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::