Forum: Ruby how to break china gfw with ruby?

Posted by Pen Ttt (luofeiyu)
on 2010-09-02 04:53
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')))
}}

any advice aprriciated.
Posted by Andrew Mcelroy (sophrinix)
on 2010-09-02 05:29
(Received via mailing list)
On Wed, Sep 1, 2010 at 9:53 PM, Pen Ttt <myocean135@yahoo.cn> wrote:

> $proxy_addr = '212.170.251.27'
> program to do this.
> }}
>
> 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?  :-)
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.