Help > Forum > Topics & Posts > Preventing audio and videos from being downloaded

Preventing audio and videos from being downloaded

You can follow the instructions below to prevent audio and video files uploaded to forum posts from being downloaded by users:

  1. Log in to your Website Toolbox account.
  2. Click the Appearance link.
  3. In the Appearance menu, click the HTML link.
  4. Insert the following code into the Forum Head Tag HTML Code textbox:

    <script>
    window.addEventListener("load", function(){
    	if(jQ('#posts-list').length || jQ('#topics').length) {
    		jQ('audio, video').attr('controlsList','nodownload').on('contextmenu',function() {
    			return false;
    		});
    	}
    });
    </script>
  5. Save the changes.


If you still need help, please contact us.