Development question about site

Discussion in 'Software' started by pranks7er, 29 Mar 2003.

  1. pranks7er

    pranks7er mange tout

    Joined:
    25 Dec 2002
    Posts:
    3,515
    Likes Received:
    0
    is there any code i could add to my site that stops people copying content such as pictures, logos, html or java code etc
     
  2. Sid

    Sid Banned

    Joined:
    13 Mar 2002
    Posts:
    1,413
    Likes Received:
    0
    u could add a simple no right click thing (to stop image stealing). but i always think those things are a bit gay tbh. and it'd only stop people that don't really know much about computers.

    theres probably more sophisticated method. altho, i think that if people want your image...there will always be a way to get it really.

    i hav seen a page or two where all the source code is encrypted using javascript, dont know much about how it was done tho.

    the source code that was all encrypted was a text msging online service form thing that they obviously didnt want ppl using from another site. but i managed to find out the form target and stuff anyway...
     
  3. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    The best way to fool (stupid) people who are after your code is to just put a huge gap in your html file before you start writing your HTML.

    example <- click view, source and have a look ;)

    as for images though, I can't see a way to stop people right clicking and saving unless you want to have one of those VERY annoying no-right-click things which don't really stop anyone anyway!
     
  4. Mr. Roboto

    Mr. Roboto xBurningMikex

    Joined:
    3 Dec 2002
    Posts:
    968
    Likes Received:
    0
    there's no real way to stop stealing of images, you can just *printscreen* and paste it into paint and take the image.

    for coding, there's lots of ways.

    For server-side stuff, your coding really can't be seen by a client, so that's always an idea.
     
  5. Haddy

    Haddy World Domination

    Joined:
    22 Jan 2002
    Posts:
    2,821
    Likes Received:
    0
    Theres really no way to stop people from stealing code unless the page itself is encoded with something such as Zend
     
  6. Mr. Roboto

    Mr. Roboto xBurningMikex

    Joined:
    3 Dec 2002
    Posts:
    968
    Likes Received:
    0
    elaborate or give link to elaboration please.
     
  7. acrimonious

    acrimonious Custom User Title:

    Joined:
    8 Nov 2002
    Posts:
    4,060
    Likes Received:
    3
    I've seen Java Script that prevents right click, left+right click and the veiw source but if someone is determined enough to steal your code they will. They couls save to whole page to the hdd and open the page in notpad for example or simply disable Java Script.

    The best thing to do is give them a hard time, don't make your code clear to vistors, a bit messy perhaps, it allways puts them off.
     
  8. Hargle

    Hargle What's a Dremel?

    Joined:
    13 Oct 2001
    Posts:
    404
    Likes Received:
    1
    You could strip all the redundant whitespace and newlines. Makes it harder to read and save a few bytes in bandwidth at the same time.

    What exactly do you want to stop people copying? In the end pretty much everything that is processed client side will be up for grabs.
     
  9. complexprocess

    complexprocess What's a Dremel?

    Joined:
    8 Jul 2002
    Posts:
    353
    Likes Received:
    0
    I never understood the big deal about hiding source. Any javascript somebody writes or "cool" html trick he/she has used is already well documented somewhere on the web, for the most part. Anything that contains sensitive information should be done server side anyway, with something like php, perl, or asp. It will be impossible (or at least beyond the capability of all but a couple people) to get at it that way. Make sure that if you are hosted on an IIS server and using asp, make sure the server is patched to prevent that period trick that allows people to download your script.

    As far as images, Roboto hit it on the head. There's always some workaround to grab your images, so there's no point in putting on one of those annoying "no right-click" scripts. Just watermark your images and post a copyright message somewhere easy to notice, like the bottom of every page. That way if someone does steal your image, you have every right to threaten legal action.
     
  10. Mr. Roboto

    Mr. Roboto xBurningMikex

    Joined:
    3 Dec 2002
    Posts:
    968
    Likes Received:
    0
    yeah every one of my pages are copyrighted, even though I do all server-side stuff now. I just think that it's common sense to copyright.

    You do not have to register to force someone to take down stuff, as long as you actually say there is a copyright, then there is.
     
  11. Sid

    Sid Banned

    Joined:
    13 Mar 2002
    Posts:
    1,413
    Likes Received:
    0
    actually...you don't even need to say it's copyrighted. If you write something, unless you say it's not copyrighted...it is.
     
  12. Draxin

    Draxin Seeker of Photons

    Joined:
    29 Nov 2001
    Posts:
    965
    Likes Received:
    5
    there is a way to disable the "printscreen" key. i used it on an old website i made. its throught the use of java script. it is simaler to the disable right click javascript thats floating around out there. I used that and then modified it to disable the "printscreen" key. id post it if i could, but it was unfortunently lost in a hard drive crash (YES I KNOW I SHOULD BACK STUFF UP) but ill see if i can work something out. oh and a really nasty trick is to add a layer over your imae with a transparent image on thwe layer so they right click and save the image but they get the transparent image instead of what they want. i do that on some of my sites LOL. mmmmm fooling stupid people is funny

    good luck
     
  13. Mr. Roboto

    Mr. Roboto xBurningMikex

    Joined:
    3 Dec 2002
    Posts:
    968
    Likes Received:
    0
    but the thing is, there is ALWAYS a way around things. If something is disabled through javascript, a user can disable javascript and then have access. If someone is determined to take your stuff, he/she will find a way.
     
  14. mookie

    mookie very nawty<br><img src="http://mookie.org/i/avatar

    Joined:
    30 Jun 2002
    Posts:
    639
    Likes Received:
    1
    this is a little off topic but kinda no so:
    how do you make it so your images can only be linked from certain cites, like theforumisdown.com or tripod does?
     
  15. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    think it's something to do with .htaccess, mook. but i may be wrong :)
     

Share This Page