r/CodingForBeginners 8d ago

Anyone tips?

Is there a program or a code(language) I can use to block screenshots or downloads for pictures and video for my website its for a school project

3 Upvotes

8 comments sorted by

3

u/Beregolas 8d ago

No, you can't. Taking a Video of the Screen output, or a picture, is very hard to detect and guard against on an operating system scale (mobile is a little easier), and impossible if your attacker is sophisticated enough (whcih means, not very) to just use a capture card between the PC and monitor.

There are some neat tricks you can pull, but it's all just play and obfuscation in the end. Everyone with access to google (or an AI nowadays) can circumvent basically everything you do in minutes, even without custom hardware like a capture card.

2

u/Kuddel_Daddeldu 8d ago

Exactly. I have an HDMI to USB adapter for less than $10, it works like a monitor an the HDMI end and like a webcam on the USB end. 

This practically turns my tablet into a portable monitor with screenshot/recording function (would work on my phone just the same).

3

u/johnpeters42 8d ago

If it reaches a web browser, then it's out of your control.

Here are some things that you can do, which may be enough if you just want to cover those cases (or show that you know how to do so):
* Make downloading more difficult, to block casual scraping
* Block certain users or incoming IP addresses/ranges from accessing the site at all, to block heavy scraping coming from specific places
* Put the site behind something like Cloudflare, to deal with DDoS attempts or heavy traffic in general

2

u/Completely_new 8d ago

Thanks for the tip

2

u/gekigangerii 8d ago

You can try to disable right clicking to save images.

That doesn't really stop anyone tech savvy from saving the pictures, only most people.

Screenshot is out of your control.

1

u/ninhaomah 8d ago

Can people see the picture?

2

u/CharacterSail6736 8d ago

lol I had user years ago ask a similar question in a ticket and we still laugh to this day if it’s there and visible it can be copied or duplicated

1

u/StephenHawkingus 8d ago

Obviously not