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

Sr. Product Manager

@ MixMode | Remote, US

Information Security Engineers

@ D. E. Shaw Research | New York City

Technology Security Analyst

@ Halton Region | Oakville, Ontario, Canada

Senior Cyber Security Analyst

@ Valley Water | San Jose, CA

Product Security Engineer

@ ServiceNow | Hyderabad, India

Senior Application Security Engineer (Puerto Rico)

@ RTX | HPR99: Field Office – PR, Remote Location, Remote City, PR, 00921 USA