zyronix / auto-sub

Automatically exported from code.google.com/p/auto-sub
0 stars 0 forks source link

Proxy Support #104

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Bierdopje is using cloudfare for DNS etc.. it should make the site quicker, 
faster, more responsive etc.. 

There is however a side affect: it is possible that users are being blocked by 
cloudfare due to their 'anti-virus' protection mechanism. A user is being 
forced to enter a 'chapta' keyword to enter the site.

Autosub is requesting data from api.bierdopje.com so far so good, this api site 
is not using cloudfare, but .... when downloading the actual sub, you are 
downloading it from www.bierdopje.com/download/xxx
and this is behind the cloudfare stuff ... Meaning: you can see new subs, but 
cannot download as you cannot enter a chapta keyword.

1. As user you are not sure why you are blocked
2. As user you will give AutoSub the blame but cannot find the solution, 
causing a lot of support issues for autosub
3. no real direct support available from the maintainers of bierdopje

In my situation, a open proxy at a server at home was the cause that 2 entries 
were made at a honeypot, the IP was cleared, but still cloudfare was showing 
the 'anti-virus' page at random occassions making it unreliable to run autosub

To solve this I kindly ask the support of a Proxy

As my Python skills are not sufficient I am unable to add the support myself 
but this is it:

add following to Bierdopje.phy

proxy_url = "http://[ip-address proxy]:port"
proxy_support = urllib2.ProxyHandler({'http': proxy_url})
opener = urllib2.build_opener(proxy_support)
urllib2.install_opener(opener)

the webinterface should allow to use the proxy with enable / disable
and the user can only use it when entering an proxy ip by themselves

Auto-Sub has the library part for the proxy already available, cause with above 
statement and correct IP-Address / Port I am using it.

Original issue reported on code.google.com by aroundmyroom on 7 Jun 2012 at 7:28

GoogleCodeExporter commented 9 years ago
Would be nice to have, but there are more important issues open. Accepted, but 
priority-low

Original comment by romke.va...@gmail.com on 12 Jul 2012 at 2:36