Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Community Cafe (http://www.bvlist.com/forumdisplay.php?f=18)
-   -   Ban IP in announce? (http://www.bvlist.com/showthread.php?t=3877)

BCross 26th November 2009 19:41

Ban IP in announce?
 
Hi, can I ban a IP at announce.php of TorrentTrader? To no connect in all torrents?
How?

Thanks!

lostgirl 27th November 2009 11:13

PHP Code:

//=== stop banned IPs
$nip ip2long($ip);
$res mysql_query("SELECT id FROM bans WHERE $nip >= first AND $nip <= last")or sqlerr(__FILE__,__LINE__);
$res21 mysql_query("SELECT id FROM seedbox_white_list WHERE $nip = first")or sqlerr(__FILE__,__LINE__);
if (
mysql_num_rows($res) > && mysql_num_rows($res21) <1)
{
$fp fopen ('hacklog.txt''a');
fwrite ($fp'IP - ' $_SERVER['REMOTE_ADDR'] . ' Announce Tracker Banned IP');
fclose ($fp);
err("Banned IP ...Please Cantact Staff If You Wish To Sort This Out");} 

My own Version in announce....
Looks to see if banned.....Then see's if it's also in the allowed list.....if not reports to log file and informs them via client they are banned


All times are GMT +2. The time now is 00:54.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.