Dec. 20, 2023, 3:36 p.m. | Frost

System Weakness - Medium systemweakness.com

Welcome to a tutorial on how to hide your website source code using JavaScript.

This will be a short article where I will show you two methods if you want to restrict your visitors to view or scrap your website code in inspect element.

Disable Right-Click

One method to prevent users from accessing the code, which includes options such as viewing source, inspecting elements, and saving images, is by disabling right-clicking.

So if I use right-click on my webpage, it …

article code cybersecurity hide javascript page privacy programming source code tutorial web web development website

CyberSOC Technical Lead

@ Integrity360 | Sandyford, Dublin, Ireland

Cyber Security Strategy Consultant

@ Capco | New York City

Cyber Security Senior Consultant

@ Capco | Chicago, IL

Sr. Product Manager

@ MixMode | Remote, US

Security Compliance Strategist

@ Grab | Petaling Jaya, Malaysia

Cloud Security Architect, Lead

@ Booz Allen Hamilton | USA, VA, McLean (1500 Tysons McLean Dr)