Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to hide my source code so to not be copied

Tags:

html

copy

I was recently informed by someone that my website was copied. When I looked at the linked that he gave me I so that the site was identic to mine except for the logo and text. Is there a way to hide my code? Or to make it impossible to right click on my page? I saw on some websites that if you go to http://example.com/images/ it will show access denied, not a list with all your images...How do they do it? Thank you!

like image 661
Claudiu Creanga Avatar asked Sep 22 '12 12:09

Claudiu Creanga


People also ask

Can source code be hidden?

You can't hide your HTML source code in browser anyway because your browser needs HTML code to run and view the web page. However, here are some other techniques to minimize web scraping or code copy-pasting : Use REACT JS to minimum encapsulate your source code.

How do I protect my HTML code?

HTML security consists of three different security measures: HTML encryption to ensure web content cannot be accessed by unauthorized users. The use of digital certificates to validate a domain and ensure content is coming from a trusted location (the URL in the browser address bar).


1 Answers

You can do stuff which amounts to security through obscurity, but the only way to prevent your client-side web source from being copyable is to not push it down the wire, to not deliver it in the first place, shut down your website.

like image 92
Grant Thomas Avatar answered Sep 19 '22 23:09

Grant Thomas