Hello Member,

I am doing front end development from the last 2 months. I have got 1 project from a client. Almost the work is completed but now the client is also demanding for right click disabled for all webpages something like this. I have done it but the source code of the site open when pressing the shortcut keys CTRL+U how can I also disable view of source code?

Any help is appreciated.

Best Regards

Since a web browser needs this code to display your site, you can't shut off all viewing of said code because, it's burnt into how things work.

Sorry but this may be a time when you turn from being a front end developer to an educator.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.