# How to protect source codes

**URL:** https://forum.kirupa.com/t/how-to-protect-source-codes/237081
**Category:** web dev
**Created:** [August 27, 2007, 4:09am UTC](https://forum.kirupa.com/t/how-to-protect-source-codes/237081 "2007-08-27T04:09:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![geO\_GY](https://avatars.discourse-cdn.com/v4/letter/g/91b2a8/32.png) [@geO\_GY](https://forum.kirupa.com/u/geO_GY)
#### Post date: [August 27, 2007, 4:09am UTC](https://forum.kirupa.com/t/how-to-protect-source-codes/237081/1 "2007-08-27T04:09:43Z")

</div>

Is there a javascript code that prevents viewers from saving web files via the website?

**e.g.** If i have a webpage online which includes images, text, swf etc, i want to make it safe so that no one can simply do a:  
“File | Save As | Webpage complete”

and use the files to their advantage.

I simply want the saved html to be a blank html page, and the images not to be included in the save.

Thanks 🙂
