JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 19.02.2019, 18:35
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default Automatic free proxy grabber feature

Can U make a feature that grabs free proxies from automatic proxy generation site like **External links are only visible to Support Staff****External links are only visible to Support Staff**

There are a lot of other sites on GitHub like this one. Some refreshes after 15mins some after 1hr. you can add all of them if you want.
Reply With Quote
  #2  
Old 20.02.2019, 11:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

I'm sorry but we won't add such a feature. You and everyone else is free to create an extension/addon/eventscripter script.

There are many reasons NOT to use public lists:
-how anonymous are those proxies (do they log traffic/IPs?)
-how safe are those proxies (do they intercept/modify traffic?)
-who owns those proxies (maybe law company or mpaa owns them and just wants to collect/sniff on the traffic)
-many ppl using the same proxy(list) will increases chances that those proxies are getting blocked by the services.

You can easily write an eventscripter script that fetches the list and updates the connection settings in JDownloader. You can ask mgpai for help with this, see https://board.jdownloader.org/showthread.php?t=70525
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 20.02.2019, 15:35
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

I understand what U R saying but they claim they R highly anonymous. Check here: <a href="**External links are only visible to Support Staff**>Link</a>
<img src="https://imgur.com/d7CpWfa" alt="Prof" />
Which beats Ur first 3 concerns. And for the last one, even if all those proxies were to die it'll regenerate the new batch just in 15 mins.

Anyways, if it's against Ur policy I respect that. I'll ask mgpai for eventscripter just as U said.
Reply With Quote
  #4  
Old 20.02.2019, 15:39
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

It's not against our policy. But we already have tons of open tickets and I just mean *we* (the developers) won't add this feature. Any developer is free to create an extension for JDownloader that does it or via eventscripter script.


anonymous -> who tested it? I can be mpaa and also claim that my proxy is anonymous also anonymous doesn't say anything about not spying on traffic/IPs.
everyone is free to use those public proxies but always have to remember that the proxy owner is able to see at least your IP and the destination IP/maybe host
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 20.02.2019, 22:04
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

Okay, Understandable.
Reply With Quote
  #6  
Old 21.02.2019, 10:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Thanks for your understanding!
__________________
JD-Dev & Server-Admin
Reply With Quote
  #7  
Old 16.06.2019, 14:05
thecoder2012's Avatar
thecoder2012 thecoder2012 is offline
Official 9kw.eu Support
 
Join Date: Feb 2013
Location: Internet
Posts: 1,324
Default

Quote:
Originally Posted by Jiaz View Post
You and everyone else is free to create an extension/addon/eventscripter script
Okay.

Example:
Spoiler:
Code:
//Proxylist updates
//disablePermissionChecks();
//setNotifyOnException(true);


var proxy_test = 0;//1=ON,0=OFF
var max_proxies = 0;//0=Unlimited
var old_proxylist = [];
var new_proxylist = "";
var add_proxy = JSON.parse("{\"proxy\" : {\"username\" : null,\"password\" : null,\"port\" : 80,\"address\" : null,\"type\" : \"NONE\",\"preferNativeImplementation\" : false,\"resolveHostName\" : false,\"connectMethodPrefered\" : false},\"rangeRequestsSupported\" : true,\"filter\" : null,\"pac\" : false,\"reconnectSupported\" : false,\"enabled\" : true}");
var filter = new Array();

var settings = "org.jdownloader.updatev2.InternetConnectionSettings";
var storage = "cfg/org.jdownloader.settings.InternetConnectionSettings";
old_proxylist = callAPI("config", "get", settings, storage, "customproxylist");

var html = getPage("https"+"://raw.githubusercontent.com/fate0/proxylist/master/proxy.list");
var lines = html.split("\n");

for (var key in old_proxylist) {
    if (old_proxylist.hasOwnProperty(key)) {
        if (old_proxylist[key].proxy.type == "DIRECT" || old_proxylist[key].proxy.type == "NONE" || old_proxylist[key].enabled == false) {
            if (new_proxylist == "") {
                new_proxylist += JSON.stringify(old_proxylist[key]);
            } else {
                new_proxylist += "," + JSON.stringify(old_proxylist[key]);
            }
        }
    }
}

var myBr = getBrowser();
for (var i = 0; i < lines.length; ++i) {
    if (IsValidJSONString(lines[i])) {
        var temp_JSON = JSON.parse(lines[i]);
        var add_proxy_new = add_proxy;
        add_proxy_new.proxy.type = temp_JSON.type.toUpperCase();
        add_proxy_new.proxy.port = temp_JSON.port;
        add_proxy_new.proxy.address = temp_JSON.host;

        var errorcheck = 0;
        if (proxy_test == 1) {
            myBr.setProxy(temp_JSON.type + "://" + temp_JSON.host + ":" + temp_JSON.port);
            try {
                myBr.getPage("http://www.google.de/");
            } catch (e) {
                errorcheck = 1;
            }
        }

        if (errorcheck == 0 && proxy_test == 1 || proxy_test != 1) {

            if (add_proxy_new.proxy.address && filter[temp_JSON.host] != true) {
                filter[temp_JSON.host] = true;
                if (new_proxylist == "") {
                    new_proxylist += JSON.stringify(add_proxy_new);
                } else {
                    new_proxylist += "," + JSON.stringify(add_proxy_new);
                }
            }
        }
    }
    if (i >= max_proxies && max_proxies > 0) {
        break;
    }
}
callAPI("config", "set", settings, storage, "customproxylist", "[" + new_proxylist + "]");

function IsValidJSONString(str) {
    if (typeof str !== "string") {
        return false;
    }
    try {
        JSON.parse(str);
    } catch (e) {
        return false;
    }
    return true;
}

Example for Zippyshare with filters in this (german) thread Proxys für Zippyshare funktionieren nicht
__________________
Join 9kw.eu Captcha Service now and let your JD continue downloads while you sleep.

Last edited by thecoder2012; 31.01.2020 at 02:44.
Reply With Quote
  #8  
Old 03.07.2019, 18:20
Cyberavater Cyberavater is offline
JD Legend
 
Join Date: Feb 2019
Posts: 732
Default

@thecoder2012 Thanks!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 12:34.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.