How to prevent to download the source code of page using File > Save as?
It's not possible and you shouldn't even bother trying it, because:
Just look at Microsoft, Amazon, and Co., but also at sites like DeviantArt: All these businesses obviously spent a lot of effort (=money) into their sites, and they don't do anything to prevent the source access.
On the other hand I've seen many small private sites, with no real content or value other to the creator of the pages, which try to prevent accessing their source.
As a rule of thumb: Any kind of copy control technique, which harasses your legitimate customers, doesn't pay off and will damage your business in the long run.
You cannot prevent this behavior. Even if you were to be able to prevent it in any particular browser, you are still delivering code content that browsers render for you, someone could just create a raw request and view the source.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With