Skip to main content

Domains for redirects

Platform Inhousead.net provides possibility to change Referer header on Popunder or Push click, so cover real click origin from SSP. You should turn on option Send all clicks through intermediate page on Publisher's or Provider's feed.
But basically Referer header is changing on domain name of click URL. There are fields Custom IPv4 redirect hosts and Custom IPv6 redirect hosts on Provider's feed settings, and if you put several values there the will be use randomly for every click that should be sent to filtersite. But those domains should be prepared before using as Redirect hosts.
There are two main schemes that can be used to create several redirect domains. We will cover both of them below.

1. Separate DNS records for clicks

If you don't have real sites hosted on some real servers and only want to increase number of Refs to substitute, you can use this way.

  1. On your DNS-provider create DNS CNAME-records that point to click.inhousead.net (for example, c.hostname.com) or to click6.inhousead.net for handling IPv6 requests.
  2. Create SSL-certificate for those hostnames (or for wildcarded hostname that covers your domain name, for example, *.hostname.com). You can use Let's Encrypt to get free certificate but it should be renewed every 3 month. Sometimes SSL certificate can be provided by your hoster or DNS-provider.
  3. Send SSL-certificates for the Inhousead Techical team to be deployed on our servers.
  4. Add hostnames to the Custom IPv4 redirect hosts or  Custom IPv6 redirect hosts (depending of address you have used in CNAME records). Just add domains (without https://) separated by commas.
  5. Now every click that should be redirected using intermediate page will have clickURL with hostname randomly selected from provided list. Click on this URL will open intermediate redirect page with address c.hostname.com (for example), and redirected click will have such Referer header instead of original one.
  6. Note that trying to open address from Referer header will not open any actual site. But there is an option to redirect requests on your "click" domains to the any other target page. Contact Inhousead Technical team in case you need such option.

2. Proxying clicks from real site

If you have real site on quite powerful hosting or dedicated server you can use it to "proxy" click requests to the Inhousead servers. A huge advantage of such approach is a Referer header that directly points to your site. It looks like that click really comes from your site - not from DSP.

  1. Let's assume that you already has got a working site or few ones with registered domain name hosted somewhere. There is a web server app like NGINX or Apache hosting your site directly.
  2. Set up your web server to proxy requests on /click path to the http://click.inhousead.net. Here is an NGINX configuration file example.
           location /click/ {
             proxy_pass http://click.inhousead.net;
             proxy_set_header Host $host;
             proxy_set_header X-Real-IP $remote_addr;
             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
             proxy_set_header X-Forwarded-Proto $scheme;
           }
    
           location / {
             try_files $uri  /index.php?$args;
           }
    
  3. Add hostname of your site or few ones to the Custom IPv4 redirect hosts field in Provider's feed settings. Just add domains (without https://) separated by commas.
  4. Now every click that should be redirected using intermediate page will have clickURL with hostname randomly selected from provided list. Click on this URL will make request to your site but "under the hood" will be proxied to our servers. User will get intermediate redirect page on address like https://yourrealsite.com/click and after redirecting click's Referer header will be exactly yourrealsite.com.
  5. Please note that for best performance and less clicks loss your hosting server should be able to quick handle all the clicks comes through it. So consider it quite powerful and reliable.