Got a PS3? Want Hulu Back? Easy enough…
Update Jan 6, 2010: Some users are reporting that they’re getting an error telling them they need to update Flash. I imagine we’re going to have to wait for Sony to update the PS3 firmware with a new Flash version.
Over the weekend Hulu stopped working for PS3 users. How did they block the PS3 users? With the dumbest method they could find. They test the User-Agent string in the HTTP request. Well, luckily, we can use a proxy server and just rewrite it. Windows users may want to look here
1. Install squid (“sudo apt-get install squid” for ubuntu users…. for Windows users, google for: squid windows)
2. Edit squid’s default config (/etc/squid/squid.conf on ubuntu) with these changes (or download my configuration: squid-hulu.conf):
Search for “acl localnet src” and set it to your internal network. You can remove the other localnet definitions if you’re not using them as shown here:
#acl localnet src 10.0.0.0/8
#acl localnet src 172.16.0.0/12
acl localnet src 192.168.0.0/16
Note: For 99.9999% of you, the correct line will be “acl localnet src 192.168.0.0/16″
After the “acl localnet src” line, add this:
acl hulu url_regex -i ^http://.*.hulu.com/.*
Search for “http_access allow localhost” and add “http_access allow localnet” as such:
http_access allow localnet
http_access allow localhost
Add the following two lines pretty much anywhere in the file (the end of the file works just fine):
header_access User-Agent deny hulu
header_replace User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:188.8.131.52) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
3. Start squid (sudo /etc/init.d/squid start)
4. Go to PS3 Internet settings. Do manual configure. Go through the settings as normal (the defaults should be fine) until you get to proxy server. Set it to be your PC’s IP address port 3128.
Your PS3 is now a Windows machine running Firefox (as far as Hulu is concerned) and you can use Hulu again. What a dumb method of restricting access.
UPDATE – Jul 30 2009: To all of you guys out there saying “Why don’t you just use PlayOn or TVersity?” My response is:
from eric to MediaMall Support
date Mon, Jun 29, 2009 at 10:00 AM
I assume you're saying that there's no plan for a Linux version then?
from MediaMall Support to eric
date Mon, Jun 29, 2009 at 10:03 AM
That was the response I received. TVersity is quite obviously intertwined with Windows and there is no hope there either. The users that support the invasive DRM (by using it) are responsible for open protocols not being available. If you want to know why DRM is successful, you need only look in the mirror.
UPDATED – Aug 10 2009: As requested in the comments, the instructions now make it so that only hulu will get the header replaced. Also, the comments section has tips and hints for Windows users and squid version 3.0+. See: