![]() |
|
Blocking View-Source: command - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Design (https://sinister.ly/Forum-Design) +--- Forum: Web Design (https://sinister.ly/Forum-Web-Design) +--- Thread: Blocking View-Source: command (/Thread-Blocking-View-Source-command) |
RE: Blocking View-Source: command - alok9shm - 04-18-2014 Yeh!! Blocking users from viewing the source code of your HTML is very tough. There are tons of ways to view it, and few to hide it (and users find the other way in to your source). I have spent days figuring out how to hide it, but in vain. The farthest I went was when I converted the whole website to Flash, and it cost me dear as I had compromised with SEO that way. Still the source was not 100% hidden as someone would easily extract the source files from a .swf. RE: Blocking View-Source: command - alok9shm - 04-18-2014 Yeh!! Blocking users from viewing the source code of your HTML is very tough. There are tons of ways to view it, and few to hide it (and users find the other way in to your source). I have spent days figuring out how to hide it, but in vain. The farthest I went was when I converted the whole website to Flash, and it cost me dear as I had compromised with SEO that way. Still the source was not 100% hidden as someone would easily extract the source files from a .swf. RE: Blocking View-Source: command - Ex094 - 04-18-2014 I don't see any point of hiding your source code, There are very few ways to do that but they are easy to break. For example you can encrypt your source code but there are hundreds of sites that can decrypt it for you. BTW what is it that you are trying to hide? I was curious about this matter when I was going to use Javascript in one of my clients site because it's Client Side and it's visible to the user hence I had to take care of security. Please enlighten us more RE: Blocking View-Source: command - Ex094 - 04-18-2014 I don't see any point of hiding your source code, There are very few ways to do that but they are easy to break. For example you can encrypt your source code but there are hundreds of sites that can decrypt it for you. BTW what is it that you are trying to hide? I was curious about this matter when I was going to use Javascript in one of my clients site because it's Client Side and it's visible to the user hence I had to take care of security. Please enlighten us more RE: Blocking View-Source: command - Ex094 - 04-18-2014 I don't see any point of hiding your source code, There are very few ways to do that but they are easy to break. For example you can encrypt your source code but there are hundreds of sites that can decrypt it for you. BTW what is it that you are trying to hide? I was curious about this matter when I was going to use Javascript in one of my clients site because it's Client Side and it's visible to the user hence I had to take care of security. Please enlighten us more RE: Blocking View-Source: command - hhrk - 04-18-2014 <script language="JavaScript"> <!-- document.oncontextmenu = function(){return false} if(document.layers) { window.captureEvents(Event.MOUSEDOWN); window.onmousedown = function(e){ if(e.target==document)return false; } } else { document.onmousedown = function(){return false} } // --> </script> RE: Blocking View-Source: command - hhrk - 04-18-2014 <script language="JavaScript"> <!-- document.oncontextmenu = function(){return false} if(document.layers) { window.captureEvents(Event.MOUSEDOWN); window.onmousedown = function(e){ if(e.target==document)return false; } } else { document.onmousedown = function(){return false} } // --> </script> RE: Blocking View-Source: command - hhrk - 04-18-2014 <script language="JavaScript"> <!-- document.oncontextmenu = function(){return false} if(document.layers) { window.captureEvents(Event.MOUSEDOWN); window.onmousedown = function(e){ if(e.target==document)return false; } } else { document.onmousedown = function(){return false} } // --> </script> RE: Blocking View-Source: command - Yung Lean - 04-18-2014 @Ex094 I am doing a project and I thought I could secure the code But I see it's no worth now. RE: Blocking View-Source: command - Yung Lean - 04-18-2014 @Ex094 I am doing a project and I thought I could secure the code But I see it's no worth now. |