Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 14:42

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: [question] proxocket
PostPosted: 09 Jun 2009 04:47 

Joined: 24 Oct 2007 00:44
Posts: 26
How would you filter an IP range in lets say, myrecvfrom?

example...
123.123.123.0
123.123.0.0
222.0.0.0


Top
 Profile  
 
 
 Post subject: Re: [question] proxocket
PostPosted: 09 Jun 2009 11:15 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
code attached.
put the IPs or classes of IPs in the comma separated list in blocked_IPs and it's done.
when is received a packet from a blocked IP it will be set to zero


Attachments:
File comment: myrecvfrom block subclass
myproxocket.c [2.69 KiB]
Downloaded 64 times
Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: