By TSNetwork on
Hello,
I did a little search but couldn't find such a module, so I guess I'd just ask if there's a known way to do this, at least:
I need a way to protect the source codes of drupal's pages from being viewed. I've heard of javascript codes that block the right click button or somehow hide the source.
Any known ways that work well with Drupal?
Thanks.
Comments
not possible
Fundamentally, this is how the web works. Your browser downloads the source code and then renders it for you in a nice window. There's absolutely no way to prevent someone from seeing the source. You can make it a little bit harder with tricks like stopping right-clicks or something, but these are easy to get around and offer no security benefit.
See also http://stackoverflow.com/questions/1037593/how-to-disable-view-source-an...
Hope that helps!
I know that's how a browser
I know that's how a browser works, what I actually meant was if there were any tricks to make things harder at least for people with less knowledge.
That link was useful, thanks!
Still, if anyone has any ideas specially for Drupal, please share them.
I still believe there must be Drupal modules that are pointed into this idea, I just couldn't find them.
Zendguard is effective.
I have used this on secure projects:
https://www.zend.com/products/zend-guard