Wowza Community

Prevent hotlinking


Where to put htaccess file with rules to prevent hotlinking to wowza thumbnails http://[wowza-ip-address]:8086/thumbnail?xxx



.htaccess file are specific to Apache Web Server and don’t work on Wowza Streaming Engine. The easiest is to enable authentication (digest or basic) for the mentioned HTTP provider in the VHost.xml. Alternatively you can put a web proxy in front of your Wowza Server (could be Apache, Nginx, etc) and configure hotlinking there.

There are also other ways to prevent, eg. a more custom implementation with token protection or URL referral checks etc.

As @Karel_Boek rightly mentioned .htaccess won’t work here as this is not regular Apache. Wowza is more or less based off tomcat. In addition to what he mention where a few more things you can opt for.

  1. move the image to a different folder on system or to a different system (if applicable) and have it served from a different web server that allows .htaccess

  2. Look into Tuckey URLRewrite that works for most tomcat based servers. It is like the .htaccess of java servers.

  3. Perhaps a custom http provider / filter to just control access to the image’s path.