logo       

question on track.py: msg#00253

network.bit-torrent.general

Subject: question on track.py

Hi,I would like to modify my tracker program to refuse access to
certain IP,


can any give me a tip on that?
I was thinking in the get function in track.py?

these lines..
if self.allowed != None:
if not self.allowed.has_key(infohash):
return (400, 'Not Authorized', {'Content-
Type': 'text/plain'}, bencode({'failure reason':
'Requested download is not authorized for use
with this tracker.'}))
ip = connection.get_ip()
if params.has_key('ip'):
#checking if IP is allowed here????

ip = params['ip']

but I wondered if someone could give me advice on that. (will it
screw anything up, is there a better way, or built in way, etc.

thanks a bunch,, please email me,
Bob






------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/dkFolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
BitTorrent-unsubscribe@xxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise