From: andrew mcelroy Date: 2010-09-02T12:29:15+09:00 Subject: Re: how to break china gfw with ruby? --0015174c153200dc99048f3e6be3 Content-Type: text/plain; charset=ISO-8859-1 On Wed, Sep 1, 2010 at 9:53 PM, Pen Ttt wrote: > in chian many webs are banned ,such as titter,google code ,google > video, > i can't open http://video.google.com ,can i write a program to get what > i want? > i use proxy sever ,but it is still problem i can't solved. > p1 can run , > p1 > require 'rubygems' > require 'net/http' > require 'open-uri' > $proxy_addr = '212.170.251.27' > $proxy_port = '8080' > open('/home/pt/sina','w'){|wfile| > Net::HTTP::Proxy($proxy_addr, > $proxy_port).start('http://www.sina.com.cn') {|http| > wfile.write(Net::HTTP.get(URI.parse('http://www.sina.com.cn'))) > }} > http://www.sina.com.cn is not banned. > p2 can not run,http://video.google.com is banned in china now ,the > proxy sever can not work,can i write program with ruby to solve it? > people use some soft to break gfw , it is interested for me to write a > program to do this. > p2 > require 'rubygems' > require 'net/http' > require 'open-uri' > $proxy_addr = '212.170.251.27' > $proxy_port = '8080' > open('/home/pt/wfi','w'){|wfile| > Net::HTTP::Proxy($proxy_addr, > $proxy_port).start('http://video.google.com') {|http| > wfile.write(Net::HTTP.get(URI.parse('http://video.google.com'))) > }} > > Try IP Addresses rather than Domain Names? You might be better off getting a server/hosting in a different country and route through that. I don't know if that's allowed. I am not very aware of your countries policies and procedures. any advice aprriciated. > Move to a freer country like Japan? :-) -- > Posted via http://www.ruby-forum.com/. > > --0015174c153200dc99048f3e6be3--