1

I have seen this feature in websites like Udemy , where in the best seller courses, if you try to take screenshot , they make the screen blank in this way .

I tried all possible ways of taking the screenshot like windows + prt src, windows + shift + s ,snipping tool, but each one of this took the blank image as screenshot, how to implement this in a MERN stack website?

enter image description here

Rohan Devaki
  • 2,931
  • 1
  • 14
  • 22
  • Does this answer your question? [How do i prevent from printscreen of my webpage?](https://stackoverflow.com/questions/7427286/how-do-i-prevent-from-printscreen-of-my-webpage) – Chris Charles Oct 25 '21 at 13:19
  • no ,it doesnt, i have seen it implemented in many websites like Udemy, Coding ninjas, even in netflix and prime too – Rohan Devaki Oct 25 '21 at 13:37

1 Answers1

0

That feature is basically called DRM. So any DRM enabled content is protected by the browser (depends on the browser capabilities) itself from taking captured yet it is not 100% safe. You can read more from the topics below;

https://discussions.apple.com/thread/252605325 https://www.reddit.com/r/Troubleshooting/comments/m74eis/cant_take_screenshots_of_a_udemy_course_video_in/

Edit After the comment; Enabling DRM is related on what video player component you use. Considering you are able to use jwPlayer you can follow the documentation here; https://developer.jwplayer.com/jwplayer/docs/jw8-enable-drm-through-the-web-player

ilkerkaran
  • 4,214
  • 3
  • 27
  • 42
  • how to make the DRM enabled content on a MERN stack website? is there any code? or how to implement that? – Rohan Devaki Oct 25 '21 at 14:22
  • i didnt downvote, but i want to use this for the whole website, not only for a video player .how to do that? ,becasue i will be using the content as images, and there are like 10-20 images which would be on each page – Rohan Devaki Oct 25 '21 at 14:43
  • is it possible to make the screen blank? when taking screenshots for images? – Rohan Devaki Dec 05 '21 at 04:42
  • This answer is right. Not sure, why folks have down voted it. Udemy, netflix and other services stream DRM. Leveraging DRM features is how they prevent screenshot. Look at this: https://stackoverflow.com/a/65155110/9366180 – siddharth lakhara Sep 20 '22 at 14:32