download disclaimer

Posted on 2007-08-07
Last Modified: 2013-11-13

I created a website with some code examples I wrote. I'm fine with people downloading the source code and letting them use it as they wish. But I'd like to put some language on my website saying that the code can only be posted on my website. I don't want people to take my source and post it on their own websites as their own. I'd like to at least get the credit for the code by having people visit my site.

While I know in reality people will do whatever they want, I'd at least like some kind of evidence that I tried protecting myself in case I ever need to bring this against an individual that is maliciously posting or using the code examples I've written.

Any suggestions on how to do this?

Question by:DJ_AM_Juicebox
    LVL 48

    Accepted Solution

    Some ideas:

    1. Try save your code examples into your web server, but in a local folder that is not accessible by URL.

    2. To download your code examples, the user must "agree" with your disclaimer page, where in your disclaimer page, after submission, it will assign a session variable to process page.

    3. In your process page, we use this session variable to identify user's request. If that session is valid, we write some scripting (server side scripting language) to stream down your file.

    get the idea?
    LVL 7

    Expert Comment

    What language are you using to implement your webpage?  I've used Masterpages with ASP 2.0 and it makes it pretty difficult for people to download all of the sorce of my webpage as the bulk of it is held in the Main MasterPage template.  Actually the only code they are capable of downloading is information set in any contentplaceholders.

    Author Comment

    I see what you mean - at least this way I can argue they had to physically agree to a disclaimer before downloading.

    The source code is C++ so people will be downloading as a zip file, I'm not trying to protect the source code of the web page itself.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System ( introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now