Proxy all requests edit

Download PDF

If you really want to prevent any IPs of your visitors to end up on our servers you can setup a simple proxy. We are a huge fan of NGINX. If you have a domain, let’s say and you want to have setup a proxy you would add this to your server directive in NGINX:

location /simple/ {
  proxy_set_header  X-Forwarded-Proto $scheme;
  proxy_set_header  X-Forwarded-Proto-Version $http2;
  proxy_set_header  Host $http_host;
  proxy_set_header  X-NginX-Proxy true;
  proxy_set_header  Connection "";
  proxy_pass_request_headers on;

location = /proxy.js {
  expires 7d;
  add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

Trailing slashed are very important here. Keep them as they are in the above example.

Change to the domain you run the proxy on. This can be the same domain as your own website is hosted on.

You can change the path that you proxy from (/simple/) to something else. Make sure to also update that in the second proxy_pass (&path=/simple).

If you reload your NGINX config with sudo nginx -t && sudo nginx -s reload you should be able to visit the script at Just embed this script in your HTML:

<script async defer src=""></script>
<noscript><img src="" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>

This will send all traffic via your proxy on the endpoint /simple/....

Let us know if we can help you with anything!