/    Sign up×
Community /Pin to ProfileBookmark

Protect Pictures

Hi, my name is Gavin, and I’m workin’ with my teachers on our school web page, and we have a photo gallery and some kid toook a photo from there and blew it up and put racial crap on it and posted all around the school. So i knew there was a way to disable right click, but i don’t know js yet, so if someone could give me a place where i can go for that or give another suggestion on how to protect the images from people taking them that would be much appreciated.

thanks,
Gavin

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@mrhooApr 06.2007 — Anything that can be downloaded is out of your control. Be careful what you put on the web.
Copy linkTweet thisAlerts:
@pcbrainbusterApr 07.2007 — Though you can try to limit someones options, heres the script -

<script>

document.oncontextmenu=function() { return false }

</script>

Put this in between the head tags, this will stop right clicks...
Copy linkTweet thisAlerts:
@felgallApr 07.2007 — The only way to protect images is to use a graphics program to add a watermark into the images themselves.

Two reasons why Javascript wont work -

  • 1. your visitors can disable it and thus bypass anything it blocks

  • 2. By the time the page displays the browser has already copied all the images to their computer for them. Brwsers can't display any image that they haven't copied to the local computer.


  • Also some web browsers ignore "no right click scripts" simply because the only purpose that they serve is to drive away legitimate visitors and encourage newbie thieves.
    Copy linkTweet thisAlerts:
    @CrazyMerlinApr 07.2007 — as Stephen said, what you want is actually impossible.

    all they have to do is check the url of the image and paste it into a browser to get the image on it's own.

    adding a watermark will not stop them tampering with the image.

    all you can do is get the person and report them to the police for a racial charge.

    if you have someone in your school who is a racist, they should be expelled from the school. It is that simple!

    If you don't know who it is, then you can force people to create a member account for the site before being allowed to view it. Make them supply an email address which they have to respond from.

    This will at least give you a reference for IP->email tracking.

    If you are having a race issue in your school, this should be a matter for the school governors and the police.
    Copy linkTweet thisAlerts:
    @g2k556authorApr 08.2007 — thanks, the right click disable is really what i needed. 99% of the kids at my school are not the most brilliant and don't know how disable js, and the temp internet files are blocked. and i doubt they'll think to go and look at the page source. so this is pretty much all i need, is there anyway to disable printing of that page??

    thanks a lot ?,

    Gavin
    ×

    Success!

    Help @g2k556 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.18,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...