View Single Post
  #6 (permalink)  
Old May 30th, 2002
Taliban Taliban is offline
Gnutella Aficionado
 
Join Date: March 13th, 2002
Location: Aachen
Posts: 832
Taliban is flying high
Default

Quote:
I love LimeWire, but there is no way to block people based on what client they use.
Here's how to block all non-limewire cliensts (solely for educational purpose):
Download the source code
Open the file core/com/limegroup/gnutella/filters/RequeryFilter.java
and edit this fuction (paste the three lines marked with ">>"):

private boolean allow(QueryRequest q) {
//Kill automated requeries from LW 2.3 and earlier.
byte[] guid=q.getGUID();
>> //Filter ALL none-LimeWire queries
>> if (!GUID.isLimeGUID(guid))
>> return false;
if (GUID.isLimeGUID(guid)) {
if (GUID.isLimeRequeryGUID(guid, 0) //LW 2.2.0-2.2.3
|| GUID.isLimeRequeryGUID(guid, 1)) { //LW 2.2.4-2.3.x
return false;
}
}
return true;
}

Compile and voilą, you are filtering all queries from non-limewire hosts, while at the same time being able to download from them. - I'm not encouraging anybody to do so, however (although it saves a lot of your bandwidth).

Blocking freeloaders is a lot more complicated and almost impossible. LimeWire's freeloader-blocking does NOT work except for browsers.
Reply With Quote