Welcome Guest.   Make a donation to an author on the site May 21, 2013, 02:50:11 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2012! Download dozens of custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: a tiny local URL rewrite engine to help the Chinese watch youtube  (Read 1919 times)
electronixtar
Member
**
Posts: 141


View Profile WWW Give some DonationCredits to this forum member
« on: July 14, 2009, 06:45:14 AM »

Hi DC,

Youtube is blocked in China, but there's a walkaround, set browser's Auto Proxy Config like this:

[copy or print]
if (shExpMatch(host, "*.youtube.com"))
{
    return "PROXY www.google.cn:80;";
}

You can view the youtube pages, but no videos. because the border firewall will RST every TCP port 80 request which contains the string ".googlevideo.com" (If you visit mit.edu/?.googlevideo.com, mit.edu will get blocked for couple of minutes), and it will spoof every DNS request of *.googlevideo.com to some non-exist IP address.

Now if there's a local URL rewrite change could change
[copy or print]
http://v3.lscache7.googlevideo.com/videoplayback?xxxxxx
to
[copy or print]
http://74.125.170.150/videoplayback?xxxxxx

it will work.

SO what I need is a tiny, local URL rewrite proxy engine that could do the job above, and using PAC like following

[copy or print]
if (shExpMatch(host, "*.youtube.com"))
{
    return "PROXY www.google.cn:80;";
}
if (shExpMatch(host, "*.googlevideo.com"))
{
    return "PROXY localhost:3333;";
}

Everyone can view youtube.

There's another usage, for every Google.com search result, the cached function won't work, but if you change the URL
[copy or print]
http://74.125.155.132/search?q=cache:ucajK2mTlHwJ:www.xxx.com
to
[copy or print]
http://74.125.155.132/search?by=DonationCoder&q=cache:ucajK2mTlHwJ:www.xxx.com

The page will load, because GFW only blocks URL contains the keyword "search?q=cache:"

I hope the program is compiled standalone, has a tray icon, scans a regex config file (live update running config everytime the file changes), then 302 redirect match HTTP request.
« Last Edit: July 14, 2009, 06:52:34 AM by electronixtar » Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  



[ may-june 2013 ad experiment; click here to learn more about donationcoder.com ]


 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.031s | Server load: 0.08 ]