FlexHub Forum

FlexHub General => Feature requests => Topic started by: Hamachi on August 28, 2011, 16:54:05

Title: ADC(s) fake share detector :)
Post by: Hamachi on August 28, 2011, 16:54:05
ADC(S) hub send files, if it is 1+ it make a check

!fakeshareallow true/false
!fakesharesize 600mb

A littel ide, maby there is some others ways

if share < 0 then
 if files < 0 then
  if ( files == 1 and share < fakesharesize + 1 ) or (files == 0 and share < 0) then
   #do something
  elseif share / files < fakesharesize then
   #do something
  end
 end
end
Title: Re: ADC(s) fake share detector :)
Post by: FlipFlop™ on August 28, 2011, 17:16:30
Share checking is up to the clients, it would cost the hub too many resources.

It will be possible using Ptokax scripts once the API is done, but it won't be a standard FlexHub feature.
Title: Re: ADC(s) fake share detector :)
Post by: Hamachi on August 28, 2011, 17:29:27
i mean SS (Share) and SF (Files), the hubsoft use the numbers!
Title: Re: ADC(s) fake share detector :)
Post by: FlipFlop™ on August 28, 2011, 17:38:11
But how would you determine a fake share with just numbers?

A user can share 10 HD movies in avchd format 40Gb each, or 20000 jpg files 1Mb each.
Both shares can be real, what's a fake share?
Title: Re: ADC(s) fake share detector :)
Post by: Hamachi on August 28, 2011, 18:43:41
Long time ago i have see a fake share, but a bad fakeshare have only 1 file or somfing like that.

if you say max sharesize is 50gb like bluray, if a user have a share at 100gb one file it is fake.
LIKE:
!fakesharesize 600mb
SHARE-> 100GB - FILES-> 1 = #do somfing#
SHARE-> 100GB - FILES-> 2 = #do nothing#

Some hubs have max share size too, like 600mb, if a user have only files whit 1gb+ #do somfing#
LIKE:
!fakesharesize 600mb
SHARE-> 100GB - FILES-> 100 = #do somfing#
SHARE-> 100GB - FILES-> 1000 = #do nothing#

If it is a mp3 hub, it can be 6mb, if a user have only files whit 1gb+ #do somfing#
LIKE:
!fakesharesize 6mb
SHARE-> 100GB - FILES-> 1000 = #do something#
SHARE-> 100GB - FILES-> 10000 = #do nothing#

if it is min 100gb mp3 the array can be nice :)

so it can be set lower files for every gb.

#do something# = KICK,WARN,DISCONNECT ETC.

it can be a array too:
100gb 100files
500gb 1000files
1tb 99999files
Title: Re: ADC(s) fake share detector :)
Post by: FlipFlop™ on August 28, 2011, 18:49:35
But do you really think that there ADC clients that fake sharesize but forget to fake the number of files?
Title: Re: ADC(s) fake share detector :)
Post by: Hamachi on August 28, 2011, 18:55:11
maybe, i dont know, i dont know any client to day there can fake share.

but so for hubs there have rules for max size of files, like the mp3 example.
Title: Re: ADC(s) fake share detector :)
Post by: FlipFlop™ on August 28, 2011, 18:56:28
I think that in the rare occasions that a client seems to be faking just by looking at the numbers, it's best to check manually instead of letting the hub auto-kick.
Title: Re: ADC(s) fake share detector :)
Post by: Hamachi on August 28, 2011, 19:04:19
We can make a poll about it maybe ?

I think it is a good ide, if you have 100+ users it hard to check all, better hub take vary bad fake clients.

I only know clients there can set share numbers, not files.
Title: Re: ADC(s) fake share detector :)
Post by: FlipFlop™ on August 28, 2011, 19:24:55
Clients can use clientside scripts to check everything they want. Even with ADC...

A poll would only be useful if I intended to add it if there are enough votes for it, but i don't..
Seriously, just by looking at those 2 numbers it's not a good idea to try to determine wether a share is real or fake.
Title: Re: ADC(s) fake share detector :)
Post by: Hamachi on August 28, 2011, 19:57:55
call it average of Files size :)

I like the ide, i dont like to use client to check it, hub scripts is faster :)

Hope some other like it and write back ;)

Thanks for you reply and you good work FlipFlop.