Today, a judge in the Netherlands ruled that two major national ISPs, Ziggo and XS4ALL, are to block 3 IP-addresses and 24 domainnames belonging to The Pirate Bay. Worse still, a Dutch lobby group for copyright enforcement, Stichting Brein, is allowed to provide additional domains and IP-addresses in the future, that the ISPs are also required to block. No neutral check of these additional blocks has been provided for.
To prevent this first act of censorship in the Netherlands and to show that this is not the way to deal with undesirable content on the internet, I propose that those of us who have this ability donate subdomains and IP-addresses to fight it. You can do this by creating a subdomain like piratebay.yourdomain.nl and then configuring your webserver to act as a proxy, routing traffic from the real Pirate Bay to users who may no longer be able to access it. Doing this only takes a bit of bandwidth, but not that much because The Pirate Bay only serves .torrent-files and not the actual downloads of course.
So here are the step-by-step instructions:
- Create a subdomain like piratebay.yourdomain.nl in your domain management interface
- Enable proxying in Apache (assuming that’s what you’re running for webserver) with: a2enmod proxy
- Add the following virtualhost to your apache site configuration:
<VirtualHost *> ServerName piratebay.yourdomain.nl <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass / http://thepiratebay.org/ ProxyPassReverse / http://thepiratebay.org/ </VirtualHost>
- Restart the webserver; under Debian and Ubuntu the command is: /etc/init.d/apache2 restart
Will ProxyPassReverse modify the contents of the passed-trough file? If not, is there a way to make absolute urls in the remote site (for assets, such as Javascript, CSS and images) as well as internal links, work?
I have started a very simple reverse proxy in PHP (ugh!) https://github.com/berkes/ahoy Making it easy to deploy, and hoping people will install this on their spare servers :)
Usefull for people who have no access to (or not the knowledge or skills to) change apache configuration, but do have access to any ol’ PHP-webserver.