If you ever wonder how you can create your own tpb proxy very fast here i have described. This guide will explain how to set up your own Pirate Bay proxy site. A proxy site helps users access The Pirate Bay in countries and networks where The Pirate Bay has been blocked.
Now you can create your own piratebay proxy in 2 lines of command
a) If you're using a Debian based OS (e.g. Ubuntu), run this:
1. Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
2. Run Mirrorbay Image
sudo docker run -d --name mirrorbay-mirror -p 80:80 mirrorbay/mirrorbay-mirror:latest
Check your http://localhost it should be running on port 80
You can also setup this on server using cheap vps like linode
If you are doing this on your vps server you can open your vps ip in browser, and it should open, you can also point you domain's A record to your vps's ip address.
For more information on how to configure Mirrorbay Image, see this link.
With the PHP method, you simply need to uplaod the files to a web server that supports PHP and the PHP-Curl function
In most cases, you will just need to upload the files to your web directory and the script will work
If you don't have a web server running on your server, you will need to install it first using your distributions repositories (e.g. apt-get install nginx php php-curl)
Update: The script is now compatible with the April 2020 update of The Pirate Bay
Find a good Web Host
Try looking for a provider that ignores DMCA requests and is not based in the USA or UK. Some hosts (even in Europe) will honour DMCA takedowns, so it's good to do your research. Try doing a Google search for keywords such as: offshore, vps, dmca.
Use a CDN
Use a free CDN service such as Cloudflare to help speed up your site and lessen the load on your server. It will also conceal the true location of your server.
Note: If you are using Cloudflare, you will need to add
proxy_set_header CF-Connecting-IP ''; to your Nginx config for it to work. Otherwise you might get DNS errors
To prevent your server IP from being blocked by The Pirate Bay, we recommend preventing search engine bots from scraping your site. If you are using Cloudflare, this can be done by either creating a firewall rule or enabling the DDOS protection.
You can create a firewall rule in Cloudflare by going to Firewall > Firewall Rules and selecting Create a Firewall rule. As the field select Known Bots and ensure the action is set as Block. You can then deploy the new rule to make it active
Note: This will prevent your site from being crawled by search engines
Aside from protecting the privacy of your users, using SSL can also bypass a lot of blocks from ISP's. Therefore, it is highly recommended to use SSL for your proxy
Cloudlfare automatically provides an SSL certificate for your site so you can simply add https in front of your domain.
NGINX is the fastest and most reliable proxy method available. The PHP scripts should be used if you don't have ssh access to a server and are unable to setup NGINX
Take a look at the NGINX Documentation to further configure it to your needs
Here is a guide on how to optimize NGINX
Find a good Domain Registrar
In regards to domain names, it's recommended to avoid any domains managed by the following registries: Donuts, Radix, CoCCA, or any UK based domain registry such as CentralNic or Nominet. These registries are known to suspend domains without any notice or dispute process.
You can investigate the registry responsible for a particular domain TLD at ICANNWiki
Some example domain TLD's to avoid are:
Use WHOIS privacy on your domain name
When you register a domain name, your billing/registration information usually becomes public in the public WHOIS database. Therefore, anyone can go on a Whois search site and lookup your domain.
Some domain names do not support WHOIS privacy and will require your contact details to be public. In that case, you can try inputting fake data. However, be aware that this might be against the terms of your domain registration. Here is More information.
Get a Free Domain Name
Using FreeDNS, you can register a free subdomain name (e.g. subdomain.domain.com). This is free and doesn't require you to register or pay for a regular domain. However, since it's a subdomain, you don't control the name servers and cannot use it with services like Cloudflare
Another option is to get a free domain from Freenom. Since these are regular domains (e.g. domain.tk), you can set up name servers to point at services such as Cloudflare
Monitor your site
Handle DMCA requests
By operating a Pirate Bay proxy site, you will likely receive DMCA takedown requests. If you have found a hosting provider that ignores DMCA requests, this likely won't be an issue. However, sometimes your hosting provider or even domain registrar will require you to respond to a DMCA complaint.
In this case, we suggest letting the complainant know that you are operating a proxy site and don't host any infringing content.
Here is an example template:
Hello, The site hosted at mysite.com functions as a reverse proxy that fetches content from third-party sites. You can find more information on how a reverse proxy operates here: https://en.wikipedia.org/wiki/Reverse_proxy The content you mention originates from a third party site that we do not operate, thepiratebay.org. Therefore, in order to remove any content, you will need to send a request to the original site. Once the content is removed on the original site, it will automatically be removed from proxies such as the one we operate. The original files can be found at thepiratebay.org: https://thepiratebay.org/description.php?id=99999999 We have set up this proxy site to unblock sites that are blocked on networks, mainly for anti-censorship purposes and to promote a free and open Internet. If you have any further questions feel free to contact us. Cheers,
Check for updates
In the case that something changes with the TPB servers or setup, you may need to update the config or code to make the proxy work. If you're using the PHP script, you can monitor the Github page. Othewise, for NGINX, check this page occasionally for updates
Use ALL LATEST TORRENT PROXY LIST For Latest 2023 Working Proxy List Of All Torrent Websites.
Once you have set up your proxy and can confirm it is working, submit it to The Proxy BaySubmit your proxy