Has anyone been able to get around the Protect WordPress Videos plugin encryption?

Troubleshooting

Good Morning,

I am trying to archive some videos from a Wordpress site that has enabled this wordpress plugin. It has the video encrypted at rest and decrypts in the browser. This has put a halt to my archival efforts. I am able to download the videos using cURL along with passing thhe headers but obviously can't play it. Just seeing if anyone has ran into the same issue and has successfully gotten around it.

Posted Jun 11, 2021, 8:51 AM UTC · edited

63
bertrandlarmoyer•

Assuming that the plugin you are talking about is this one, you can easily circumvent its protection by following the procedure below.

  1. Download the web page that contains your video using cURL.
  2. Open it in a text editor and find the <video> HTML tag that you are interested in.
  3. Copy the value of the src attribute of its <source> tag.
  4. Download the video with cURL using the following command:curl -H "Range: bytes=0-" -o [filename] [video URL]

This plugin does not encrypt the video. It works by generating a new URL for the video every time you reload the page. That means that if you take the video URL from a web page you loaded in your browser, the URL will not work because your browser has already downloaded a part of the file. This is why you have to download the page with cURL. Adding the Range HTTP header to the request might seem useless in this case but it seems that the plugin is blocking any download attempt that doesn't use it.

8
dccfoux16TB•

Have you tried using youtube-dl?

4
AndrewZabar•

Seriously that thing downloads from so many types of protected embedding.

2