aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: smarter queries  (Read 3116 times)

espie

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
smarter queries
« on: April 08, 2008, 01:48:09 PM »

recently, most of my queries are spammed by some bots that add about two or three hundred results that don't matter at all.
I'm wondering if there's a way to filter them out.

In any case, I've got an idea for a smart query option that shouldn't be too hard to implement:
- add a test query command  to the interface.
- when you press this, the system generates a random query-string (only letters, about 20 or 30 longs) and sends it.
- I'm fairly confident all the answers will be spam, most of them containing the query-string verbatim, a few not containing it at all.
- at this point, a bit of analysis of the answer is needed, you can just filter out the query string from the names (and decide that names built using the same rules won't work),
or you could look at the MD4, or where the answers come from... this makes for quite a few ways to say `oh, this is spam'.

Afterwards, when you do a real query, you can filter out answers built upon the same criteria.

What do you people think ? sounds do-able ? someone already implementing this /
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: smarter queries
« Reply #1 on: April 08, 2008, 03:05:10 PM »

That would spam the legitimate servers. Maybe a "Cleanup servers" button would work, in the servers view.
Logged

espie

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: smarter queries
« Reply #2 on: April 08, 2008, 05:26:08 PM »

Hum... you think that qualifies as bad spam ?
I'm thinking, no automatic query, but a query you would make voluntarily, before actually searching for files.

Say, one `spam' query for 30 legitimate queries, assuming you keep the result more or less forever.

Would it be that bad.

I admit I haven't looked that closely at the protocol. What does `global query' do ? does it ask every server in the list ? (in that case, blacklisting the bad servers would be enough, assuming you get them),
or is it network query, e.g., ask every peer you can contact ?

Another possibility would be to just log past queries and assume stuff is just stupid answers... I mean, when I see the same `secure download of xxx' piece of shit on every answer, I don't think it needs much smarts to filter that out...

On the other hand, I think it makes sense to have some `smarts' to a query filter, because if you filter out some specific answers, that will soon turn into an arm race, where spammers tweak their answers so you still get to see them.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: smarter queries
« Reply #3 on: April 08, 2008, 05:37:41 PM »

Yes, it asks every server, so that's why adding the servers giving bad results to the ipfilter for example would be a good idea, as a server security check measure - but not for kad, for exmaple.

That's something that I read was being addressed for the next eMule version, so I am assuming the current aMule team will follow their implementation for coherence (and consistancy and agreement with the server programmers).
Logged

espie

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3
Re: smarter queries
« Reply #4 on: April 08, 2008, 09:07:40 PM »

Played a bit more...
with the current interface, as far as I know, I don't even a way to know which server answered what...
so, with a default list of ~100 servers, good luck finding which server is spamming...
Logged

RRT4

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 67
Re: smarter queries
« Reply #5 on: April 09, 2008, 12:07:33 AM »

http://edk.peerates.net/peerates/servers.php?lang=0
fully functional servers are trusted servers with no fake numbers of files/users and tested against udp spam

you need only to set up amule to update sever list from this url http://www.peerates.net/servers.php and not to fetch servers when it connects to a server/user

PS: gruk.org contains trusted servers yet not checked for spam
Logged