Reward Proxy Ban & Pay Per Stream

mastern

New Member
YetiShare User
Apr 24, 2013
56
1
0
Hi Adam,

Pay Per Stream
With MediaPlayer Plugin: try to separate PPD and PPStream. We need to add a field in file table and for .mp4 or .video_extension just add 1+ and use Download = Download file + Download Stream

PROXY BAN
The simple way and what i want to do is never ban any users. There is no change in the Statistics if a file is downloaded from a REAL_IP or Proxy_IP, we only remove the downloaded stat from a proxy in the reward plugins. (Real download = All Download - Proxy Downloaded).

Process mechanism :
DB : Create a new field in the table “file”, let’s say ‘proxy’, (if the download is from a proxy, we add a value 1 and up in the field proxy).
Files : Add a function proxydetector in includes/function.php. We call that function in “file_download page” and we update the “table file” if the user use a proxy.
Reward Plugins : we will use count (proxy) from file_table and we have the number of all proxy. We substract the real number of download (PPD).
- add a text that download from a proxy don’t count.


Here is some link i found to talk about this :
http://stackoverflow.com/questions/1000924/detecting-whether-a-user-is-behind-a-proxy
http://stackoverflow.com/questions/5421144/php-get-real-ip-proxy-detection
http://stackoverflow.com/questions/5442536/testing-user-http-proxy-using-php-script
http://php.net//manual/fr/function.gethostbyaddr.php

Regards,
Maverick