Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need some advice

    Hi all,

    I'm looking for an answer for a functionon my website.

    the site is build in php, and use some javascript to blok
    right click and the ctrl +c is bloked aswell.

    now some smart a** told me he just disable javascript
    in browser and he can easily copy My content articles
    for the site for free. Duhh...

    now i'm looking for some kinda of a function when
    javascript is disabled the content of the site will not
    been shown, not one single word will be displayed
    sure one line is needed "enable javascript please"

    is there anyone out there who could help me with a
    solution for my problem.

    thanks up front.

    greeting pete,

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,733
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Place this in the <HEAD> section:-

    <NOSCRIPT>
    <meta http-equiv="refresh" content="0; URL = nojavascript.html">
    </NOSCRIPT>

    where nojavascript.html is the page you wish the non-JavaScript enabled page to redirect to.

    content = "0; specifies the delay in seconds before the redirect takes place.
    Instantly in this case.

    But this is only very limited protection. Your original HTML page has already been downloaded and resides in the user's cache, where it can easily be accessed.

    The bottom line is - if you want to stop people copying your material, don't post it on the web in the first place. It ain't possible, although you can put some minor obstacles in the way.

    No-Right-Click scripts are easily defeated by entering the following in the URL bar:-

    javascript:void(document.oncontextmenu='')
    Last edited by Philip M; 10-28-2006 at 07:01 PM.

  • #3
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    thanks for the quicke replay and for the tip you given me.
    allthough, i don't know anything about coding neighter js
    or php, my programer is just to laizy to find out what could
    be done.

    I don't care if they copy my index.php page, it's just a sales
    page, but once signd up and made payment for the articles
    there are always some of these smart a**es, who try to get
    some more free articles, see i've put some new system into
    the articles Membership world, as it is these day most of the
    times you bay a "cat in a bagg" or you get articles that are not
    your type of content, with us people can read there content
    first, then put it in there personal account, for downloading.

    this gives you maybe a better look on the advice i'am looking
    for, one problem is already solved, you can't rip the contet
    by using an editer "open from the web", you won't get any
    content, then we've put some other js on the .php files for
    disabling right click.
    <script type="text/javascript" language="JavaScript1.2" src="menu_files/stmenu.js"></script>
    <script language="JavaScript">
    <!--
    var message="Sorry or content is protected !";
    var win=window.location;
    function IE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }

    function NS4(e){
    if (document.layers||document.getElementById&&!document.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }

    document.oncontextmenu=new Function("alert(message);return false")
    // -->
    </script>

    and for the the Ctrl+c copy trick we put this on the site.

    <script>
    function validateKey (evt)
    {
    if (evt.keyCode == '17')
    {
    alert("Sorry or content is protectd, No copy allowed!.")
    evt.returnValue = false;
    return false
    }

    if (evt.keyCode == '67')
    {
    //alert("C")
    evt.returnValue = false;
    return false
    }

    if (evt.keyCode == '99')
    {
    //alert("C")
    evt.returnValue = false;
    return false
    }
    return true
    }

    window.onkeydown = validateKey;
    </script>

    <script language="JavaScript">
    document.attachEvent("onkeydown", my_onkeydown_handler)
    /*function my_onkeydown_handler()
    {
    alert(event.keyCode);
    }*/

    function my_onkeydown_handler()
    {
    switch (event.keyCode)
    {
    case 17 : // ''
    if (event.ctrlKey) // Ctrl
    {
    event.returnValue = false;
    //window.status = "You have just disabled Ctrl-E";
    }
    break;

    case 67 : // '67'
    if (event.ctrlKey) // Ctrl-5
    {
    event.returnValue = false;
    //window.status = "You have just disabled Ctrl-5";
    }

    case 99 : // '67'
    if (event.ctrlKey) // Ctrl-5
    {
    event.returnValue = false;
    //window.status = "You have just disabled Ctrl-5";
    }


    break;
    }
    }

    </script>

    the only problem here is when shutt of js, they can copy
    every article for free, to skipp the article download counter.

    now i have a second thought, to put the content in some
    kinda of a pop-up window like this.

    <script language="JavaScript" type="text/JavaScript">
    <!--
    function openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
    }
    //-->
    </script>

    <form name="form" method="post" action="">

    <input name="Submit" type="submit" onClick="openBrWindow('your-file-name.htm','','width=550,height=500')" value="Submit">
    </form>

    i've just found out about this one above.
    when you shutt down the js in browser, he he the article is not
    shown the only thing they can do is a "prt scr", but that is
    not posible to stop.

    i hope this gives a better look on the advice i'm looking for.

    thanks for tips, everyone up front.

    greetings pete.

  • #4
    Regular Coder
    Join Date
    Oct 2006
    Posts
    107
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Before you get to ambitious with keeping your secrets,
    Try this link http://paulding.net/vsource.html

  • #5
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by rubenbuhr View Post
    Before you get to ambitious with keeping your secrets,
    Try this link http://paulding.net/vsource.html
    As i told you, you can't see the article.

    check my test url http://www.articleblueprintclub.com/...d=19&cat_id=68

    let me know, but i could not see any content there.

    greetings pete,

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, you solved the problem - no one can see your content...... now why did you bother publishing it on the web??????
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #7
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Vladdy View Post
    Yeah, you solved the problem - no one can see your content...... now why did you bother publishing it on the web??????
    Hi,

    I only wanted to react on the statement of:

    Quote Originally Posted by rubenbuhr View Post
    Before you get to ambitious with keeping your secrets,
    Try this link http://paulding.net/vsource.html
    this has nothing to do with js, it's just a way, on how you use php but that is for some other treath.

    I want to mension one thing if you where running an online busines that is making your livinghood, i guess you would do anything to, to protect your montly earings, it seems like you don't have any idea how much free bie hunters are out there, well take my word for it there are lots and lots of them.

    greetings pete

  • #8
    Senior Coder
    Join Date
    Jun 2002
    Location
    Nashua, NH
    Posts
    1,724
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by pete38 View Post
    this has nothing to do with js, it's just a way, on how you use php but that is for some other treath.

    I want to mension one thing if you where running an online busines that is making your livinghood, i guess you would do anything to, to protect your montly earings, it seems like you don't have any idea how much free bie hunters are out there, well take my word for it there are lots and lots of them.

    greetings pete
    I know how onlike business works, and I know about desire to protect online content. But I also know about the technical side of things. If I can see something on my screen I can get it (actually browser already got it for me and stored in its cache on my hard drive). Any method of attempting to prevent content copying, not only can be easily worked around by a knowledgeable person, but also restricts access to that content by legitimate customers. If you require JS to view your content, you exclude users that do not use JS and you also exclude search engines that index your content so people can find it to begin with. If you make your site "IE only" (since Mozilla has a number of tools and features that allow to access page content) then you are, again, excluding 15% - 20% of your customers.

    The question is, are you sure "savings" generated by content protection are greater than losses due to reduction of potential customer base?
    Vladdy | KL
    "Working web site is not the one that looks the same on common graphical browsers running on desktop computers, but the one that adequately delivers information regardless of device accessing it"

  • #9
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Vladdy View Post
    I know how onlike business works, and I know about desire to protect online content. But I also know about the technical side of things. If I can see something on my screen I can get it (actually browser already got it for me and stored in its cache on my hard drive). Any method of attempting to prevent content copying, not only can be easily worked around by a knowledgeable person, but also restricts access to that content by legitimate customers. If you require JS to view your content, you exclude users that do not use JS and you also exclude search engines that index your content so people can find it to begin with. If you make your site "IE only" (since Mozilla has a number of tools and features that allow to access page content) then you are, again, excluding 15% - 20% of your customers.

    The question is, are you sure "savings" generated by content protection are greater than losses due to reduction of potential customer base?
    Ok, i'm back, what you say is true i'm excluding an % of potential Customers
    by integrating js into my site, but lets get real here who and what type of people are surfing without js disabled ? and what people knows about the stored "cache" on the hard drive? well i know only people with the intention on getting to steal other peoples works, So that is why we put a comment on or site " say - js have to be enabled because the full articles are set in a pop-up window"

    ofcourse now they can take [prt scr] of the screen, but that is asking to much work for some guy's lol.

    what i'm looking for right now, to emprove the js pop-up window, it should go open in a full window without buttons in the right top corner you know the close button, Minimaise, MaxiMaise, and put a button inside the window to close it i hope to find the code soon somewhere on the net, i have seen it done in some photo gallery, but dont have this url anymore.

    greetings pete,


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •