A proxy script to include the Hüttig & Rompf Webhub Snippets on your website in complete privacy

1.2.1 2021-04-16 16:02 UTC

This package is auto-updated.

Last update: 2022-06-16 18:41:58 UTC


This script can be installed on your webserver to proxy all requests to the Huettig and Rompf Webhub trough your own server. What that means is, that there is absolutely no privacy related data (like your users ip address) sent to Huettig and Rompf servers. Therefore, you are safe to use the snippets/calculators without additional "opt-in" feature for GDPR.



Install this package using Composer:

composer require huettig-und-rompf/webhub-proxy

After you installed the bundle:

  1. Copy the "webhub-proxy" directory somewhere into your website's public docroot.
  2. Open the "index.php" in the copied "webhub-proxy" directory in an editor.
  3. Adjust the $VENDOR_DIR path (line 25) to match the requirements in your setup.
  4. Deploy the script to your production machine


  1. Go to Online Marketing
  2. Select one of the available snippets
  3. Copy the embed-code into your templates
  4. Adjust the first script tag to match your local proxy setup e.g <script type="text/javascript" src=""></script> becomes: <script type="text/javascript" src=""></script>

Nginx Configuration

If you are running your websites with nginx instead of apache, edit your configuration file to include this location directive:

Option A: Inside a sub-directory

server {
    location /webhub-proxy {
       try_files $uri $uri/ /webhub-proxy/index.php?$query_string;

Option B: Using a separarte URL

server {
    location / {
       try_files $uri $uri/ /index.php?$query_string;