Visual Studio .NET - How To Make ASP.NET 2.0 Web Application Copy Protected

Asked By Developer Developer on 08-May-08 06:08 AM

hello All,

i m new in asp.net.

i m  developing a web application using asp.net, vb.net, SQL Server 2005 and ajax.

what i want when user try to copy my web application content than he will not Succeed.

And he is also not able to view source.

pls try to help me ass soon as possibile.

Regards,

Arvind

Aravind Kumar replied to Developer Developer on 08-May-08 05:45 AM

Can you tell me how users can copy your web application!!?, its not a easy task to do.

I checked the dropthings and I can see the html source, can you explain more clearly about your requirement?

Making your Web Application Copy Protected - Rakesh Vikram replied to Developer Developer on 08-May-08 05:51 AM

On body tag write the below code. This will disable the right click so that you can avoid 'Copy'

      onselectstart="return false;"

But, this doesnt block the option of saving images in your web page. But i think that you also have to disable the 'save as' option in order to avoid saving the entire web page.



Developer Developer replied to Aravind Kumar on 08-May-08 06:10 AM

ok sorry for that. url.

what i want no one can copy data and not able to vice html source.

its ok if some one is copy images but not text data.

Aravind Kumar replied to Rakesh Vikram on 08-May-08 06:17 AM
But still the source can be seen using Menu->View->Source
Developer Developer replied to Aravind Kumar on 08-May-08 06:28 AM

i want to prevent the person to view source.

from  Menu->View->Source

pls help me i want to implement this:

Protect your website - SP replied to Developer Developer on 08-May-08 06:37 AM

See The following articles with javascript code to protect your website contents being copied..

http://www.nickjarman.com/web-development/preventing-website-content-theft-images
http://www.hypergurl.com/norightclick.html


conceal source code - mv ark replied to Developer Developer on 08-May-08 06:38 AM
AFAIK, there is no fool proof way to conceal the HTML source. The best you can do to obfuscate the HTML, CSS & Javascript is pack it tightly using minifying tools - http://developer.yahoo.com/performance/rules.html#minify

This has the added benefit of improving performance of the web pages as well.

Some folks leave a lot of blank space at the top to create a false but fairly obvious impression that there is no source. GMail obfuscates content by hiding it within a maze of IFrame tags. 

You could could protect content by placing it in images & discourage leeching of images by using an Image-Specific HttpHandler. Check this article - http://www.wrox.com/WileyCDA/Section/id-291916.html

This article - http://dorward.me.uk/www/hide/ also talks about protecting webpages

BTW, you can find the source code to build a portal like Dropthings here -
http://www.codeplex.com/dropthings/
Blocking source code in Browser... - Rakesh Vikram replied to Aravind Kumar on 08-May-08 08:09 AM

      As per my knowledge, you cannot block the end user to view your source code, when you open it in a browser. This is because, the source code is being downloaded to the visitor's / end-user computer.

   Any how, go through this link. This may provide an idea or even may help you.

http://www.dynamicdrive.com/dynamicindex9/encrypter.htm

Can't hide ur code - chakradhar koturu replied to Developer Developer on 08-May-08 10:49 PM

its simply impossible to hide ur code. you can make your code complex in a way that any body who see your code find it hard to understand but you cant prevent user to see it.
obfuscation is help ful
which got popularized with Gmail. But GMail's obfuscation isn't intentional, it's a side effect of minifying your javascript to improve speed. Things like JSmin can sometimes cut the size of JS files by half, now imagine if you're Google and you have about 15 million people viewing a page per day, reducing the size of a file by half will significantly reduce badwidth.

Developer Developer replied to chakradhar koturu on 09-May-08 12:54 AM

Dear,

Pls check this url and tell me,

are you able to view source code, copy any text and even you select any text from that web site......

http://www.isquareit.ac.in/applicationprocess.htm

you can see html source of this page but you have to

click on Online Registration  and than check.




chakradhar koturu replied to Developer Developer on 09-May-08 04:12 AM

When I click dat,it says dat page can't be displayed dear.


chakradhar koturu replied to Developer Developer on 09-May-08 04:30 AM
I didn't get u. Wot do u want to say here. You r saying that you can see the code...If it is wot u r saying, then  thats wot I said too. Please read my post.
Developer Developer replied to chakradhar koturu on 09-May-08 04:31 AM

it will work......................

try after some time

Developer Developer replied to chakradhar koturu on 09-May-08 04:48 AM

i m saying dear,

http://www.isquareit.ac.in/applicationprocess.htm

check this url and click on online registration link.

one new page will open for registration ,now check are you able to copy text,select text and view html source?

Web Application Copy Protected - james lupi replied to Developer Developer on 09-May-08 07:58 AM
you can disable the context menu (the right click) by implementing the below code:

<body oncontextmenu="return false">  

this will enable the rightclick therefore no one will copy your content, otherwise you can search for a javascript .js file which checks keypress and prompts user
chakradhar koturu replied to Developer Developer on 09-May-08 10:15 AM

U can still view the source from "View"  in top menu bar.