• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Anti-ConectionOverflow

Exiled Pain

Fervid Learner
Joined
Jan 8, 2008
Messages
552
Reaction score
4
Requesting a piece of code that helps set a time interval in my ACC so that players can't overflow the web conection by creating multiple request or pings on the webpage. Something like the one used in this forum, so that it can be set a TIME interval betwen usage.

So anyone could help my out on this one.. I appreciated.
 
Yeah, post a new thread there, and ask a moderator to remove the current one.
 
Download Gesior's one, and use file ExaDb.php
 
Add this code whereever you want, for example in your layout.php at the top

PHP:
sleep(1);

You should use <?php ?> tags

This code every refresh will wait one second and then query, so if user holds his finger at F5 it won't really work, because query is send every 1 second :)
 
Add this code whereever you want, for example in your layout.php at the top

PHP:
sleep(1);

You should use <?php ?> tags

This code every refresh will wait one second and then query, so if user holds his finger at F5 it won't really work, because query is send every 1 second :)
Who care about F5 button (when I press it for 1 second my server block me for 2 minutes - 20 queries per second - firefox 3)? Everyone can download 'HttpDoS 2.0' and send xxx queries every second.
You can configure limit in acc. maker (option added for windows users, if you use linux better read: http://otland.net/f138/some-protecion-against-ddos-22908/ ). First edit file index.php (in line 8 is):
PHP:
//require('./exaBD.php');
remove //
Then open exaBD.php and edit limits:
PHP:
$bd_xlimit['users'] = 20;
...
$bd_lock_time = 300;
...
$bd_check_interval = 5;
With this config if 1 IP send more then 20 queries in 5 seconds script will block it for 300 seconds.
 
Back
Top