source visibility

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

source visibility

Hugo <Nabble>
If you visit a website built with luan, a person can append ".luan" at the end of the URL and the source code of that page will be visible. We need a way to disable that.
Reply | Threaded
Open this post in threaded view
|

Re: source visibility

fschmidt
Administrator
Why?  Users can see HTML, why not Luan?  I think it is a good feature.  Users can hide code in the private section.  If there is some page where the user wants to hide the source, say x.luan, then he can make a x.luan.luan to hide that.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: source visibility

Hugo <Nabble>
This is a good feature if you want to build a hobby website or if making money isn't serious. In a serious commercial application this is a problem. HTML can be compressed and obfuscated, but the luan source can't (unless you have another tool to do that in the production server). So I still think we should have a way to disable that feature.
Reply | Threaded
Open this post in threaded view
|

Re: source visibility

fschmidt
Administrator
Here is an example to hide source:

x.zip

(I did this as a zip because Nabble couldn't handle the files correctly.)
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: source visibility

Hugo <Nabble>
Okay, so you have to create another file to make it happen.
This is not perfect, but works. I am closing this thread.