Make your own Proxy Site using WordPress

M
Published in: censorship - Proxy Server - WordPress

If you are unable to access a particular website, either due to government censorship (for instance, IMDB.com is blocked in China) or because your employer has blocked the site (hoping that it will make people more productive), you can use an online proxy server to quickly and easily bypass the filters.

There are tons of proxies available online and most of them are free (supported by advertising), but if you would like to keep things under your own control, without revealing your tracks to a third-party website, you can build your own proxy site using WordPress.

Proxy Website The NYT website served through WordPress proxy (see the URL)

Turn your WordPress Site into a Proxy Server

It takes less than a minute to set things up and all you need is a website (or blog) running WordPress.org software and the free RePress plugin - ‘repress’ here is short for ‘repressive’ as in ‘repressive regimes.’

Step 1: Make sure that Permalinks are enabled for your WordPress installation. Open your WordPress admin dashboard, choose Settings -> Permalinks and select any format for your Permalinks other than the default option. Save the changes.

Step 2: From the dashboard itself, go to Plugins -> Add New and search for Repress in the WordPress plugin repository. Install and activate the plugin.

Step 3: Next we need to whitelist website domains that should be accessible though our new WordPress based proxy server. Go to Settings -> Repress and add one or more domain names that you would like to access from work. Save.

Proxy Web Domains Add web domains that you like to serve through the WordPress Proxy

Your proxy server is now ready for use. If your WordPress site URL is abc.com, you can access a site like nytimes.com using the URL http://abc.com/proxy/nytimes.com. All the internal links on the NYT website are rewritten to be served though the proxy site.

Also see: Setup Proxy Server with Google App Engine

Internally, this proxy server is based on the open-source PHPProxy project but it is easier to deploy since it uses the WordPress plugin architecture. The proxied web pages are served with the NoIndex, NoFollow header and hence search engines are unlikely to notice them.

That said, it might be a good idea to deploy this on a separate WordPress install as too many proxy requests may put strain on your main website.

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: censorship - Proxy Server - WordPress

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
A
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account
G

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube