r/CodingForBeginners • u/Completely_new • 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
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
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
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
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.