Perquisite
1 JQuery File or CDN JQuery Link
2 Html
Listed Code help you to Secure Web Page or Client Code. There is number of technique to block source Code
- Block Right Click
- Restrict Copy Paste Cut Manipulation Operation on Web Page
- block ctrl + U shortcut key
JQuery Code in head section
Advantage of this Code
1) User has to enter Username etc instead of Copy Cut & Paste.
2) Others cannot directly copy web page Content.
Output
Try Demo
This code allow you to get source code by pressing ctrl+U. I'll show you how to block keyboard keys or special keys using Jquery.
This blog written by Ms. Shabana Idrisi (IT Trainer at Vtech Academy of Computers)- Microsoft .NET PHP Web Technology Jquery AngularJS