Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...hiding or encrpting source?hiding or encrpting source?
Previous
 
Next
New Post
6/18/2008 4:57 PM
 

Hi there,

I know there are traditional ways use javascripts to disable right-click, or to encrypt source code into Javascripts unicode. Is there anything in DNN or ASP.Net to hide aspx page code when people try to "View"- > "Source"?

Any ideas are welcome.

Thanks in advance.

 
New Post
6/18/2008 8:28 PM
 

Unless there is something mis configured with the server a site visitor shouldn't be able to view the actual source of the aspx/ascx pages.  They should only see the generated HTML. 

You can use the same javascripts to stop the right click just put them in your skin.  As to stopping people doing a "View"- > "Source" I don't know a way of doing that anyway if they are to view the page in thier browser the source has to be downloaded onto thier machine for thier browser to display the page.

 
New Post
6/19/2008 9:03 AM
 

tfs wrote

Is there anything in DNN or ASP.Net to hide aspx page code when people try to "View"- > "Source"?

It's built into the framework.  ASPX code is never served to the client, only the HTML rendered by the ASPNET.DLL is sent to the client.  Provided you didn't misconfigure your server of course.

Jeff

 
New Post
6/19/2008 1:00 PM
 

Would the rendered html be a security concern? e.g. hacker make use of the bits and pieces from the source to break in.

Any comments?

 
New Post
6/19/2008 2:08 PM
 

the rendered HTML can only be used to create a similar site under a different address as a fake - but there is no protection against it. All relevant stuff like passwords is not delivered with html.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...hiding or encrpting source?hiding or encrpting source?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out