Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Community Cafe
Notices

Reply
  #1  
Old 26th November 2009, 19:41
BCross BCross is offline
Member
 
Join Date: Sep 2009
Brazil
Posts: 1
Default Ban IP in announce?
Hi, can I ban a IP at announce.php of TorrentTrader? To no connect in all torrents?
How?

Thanks!
Reply With Quote
  #2  
Old 27th November 2009, 11:13
lostgirl lostgirl is offline
Member
 
Join Date: Jan 2009
Default
Posts: 6
Default
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) > 0 && mysql_num_rows($res21) <1)
{
$fp = fopen ('hacklog.txt', 'a');
fwrite ($fp, 'IP - ' . $_SERVER['REMOTE_ADDR'] . ' Announce Tracker Banned IP<br><br>');
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
Reply With Quote
Reply

Tags
announce , ban , ip

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 01:29. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2026, vBulletin Solutions Inc.