Support » Fixing WordPress » Disable Video Download

  • Anyone knows how to disable download video on WP?

    I have installed disable right click plug in however it doesn’t work on videos.

    I have video on my post and I don’t want people to download it.

    • This topic was modified 11 hours, 6 minutes ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 1 replies (of 1 total)
  • Hello.

    As you may know, anything you upload to the Internet is difficult to fully protect from being downloaded or copied. However, you can make it more difficult to download the videos.

    With the default HTML5 video player that WordPress uses, you can add the following attribute to your <video> tag: controlsList="nodownload". This will hide the ‘Download’ option from the video controls list.

    Example:
    <video controls controlsList="nodownload" src="https://example.com/file.mp4"></video>

    You can also achieve something similar with CSS, taken from this post:

    video::-internal-media-controls-download-button {
        display:none;
    }
    
    video::-webkit-media-controls-enclosure {
        overflow:hidden;
    }
    
    video::-webkit-media-controls-panel {
        width: calc(100% + 30px);
    }

    You could also try using a different video player rather than the default one. This may give you more options such as removing the download option from the context menu. There’s a couple of examples in the plugins directory: https://wordpress.org/plugins/search/video+player/

    If you’d like to explore more options, there’s a discussion here on Stackoverflow about the same topic.

    Hope this helps!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.