|
question on track.py: msg#00253network.bit-torrent.general
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> |
|---|---|---|
| Previous by Date: | windows xp: 00253, linktenshi |
|---|---|
| Next by Date: | Re: TV shows: 00253, Maynard David |
| Previous by Thread: | windows xpi: 00253, linktenshi |
| Next by Thread: | Re: Explanation for error message: 00253, blk012zr |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |