com.limegroup.gnutella.filters
Class AnomalousQueryFilter
java.lang.Object
com.limegroup.gnutella.filters.AnomalousQueryFilter
- All Implemented Interfaces:
- SpamFilter
public class AnomalousQueryFilter
- extends Object
- implements SpamFilter
A filter that blocks anomalous queries that meet the following criteria:
1) The first four bytes of the GUID match a large fraction of recently
seen queries
2) The query does not ask for OOB replies, so the first four bytes of
the GUID are not being used to encode the OOB reply address
3) There are no flags set in the minimum speed field
|
Method Summary |
boolean |
allow(Message m)
Returns true iff this is considered spam and should not be processed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnomalousQueryFilter
public AnomalousQueryFilter()
allow
public boolean allow(Message m)
- Description copied from interface:
SpamFilter
- Returns true iff this is considered spam and should not be processed.
- Specified by:
allow in interface SpamFilter
Copyright © 2009. All Rights Reserved.