A segment of code to prevent web page saving - Midnight Guest

by wykslina on 2008-11-25 13:20:56

Record a piece of code that prevents web page saving - Midnight Guest

Today, while visiting a chat room login window, I found its graphic design to be very impressive and wanted to save it as an MHT file.

However, saving was disabled. So, Midnight Guest localized its source files and re-opened them locally to save. The following code was used to disable the "Save As" feature for the webpage:

```html

```

Note: The code uses a hidden iframe to interfere with the saving functionality, but this method is not foolproof and can still be bypassed by accessing the source files directly.