Вопрос

After reading this post I'm curious to know if it is possible to disable scrolling eg: overflow:hidden when viewing source code of a web page.

I have read that it is not professional to try to hide the source code of a web page and I agree with that so my question is more about "what can be done or not" and not about "should I do it or not".

Thank you.

Это было полезно?

Решение

You can not hide the source code. But you can try to obfuscate the source to make it harder to reverse engeneer your code. If you use PHP than take a look at the free Html Encoder for ionCube. But be aware that your visitors can always see the DOM tree and reverse engeneer the code. And remember: When your visitors disabled javascript they can't access your site.

Другие советы

Not possible and even if it was, it would be pointless, as one could always get the source otherways. E.g. cURLing it.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top