WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Mobile Dev World

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Prevent Right Mouse steal your graphics
Categories : HTML, Java Script, Security Click here to Update Your Picture
eli n
Date : Oct 23rd 2004
Grade : 3 of 5 (graded 6 times)
Viewed : 8733
File : No file for this code example.
Images : No Images for this code example.
Search : More code by eli n
Action : Grade This Code Example
Tools : My Examples List

  Submit your own code examples 
 

in your <body> tag add this Code:

oncontextmenu="return false;"

so it should look something like Code:

<body oncontextmenu="return false;">


simple, eh? I don't know why people go to all that trouble to add funky javascript popups and the like. hahahaha... it's annoying for one thing... and yes this works with mozilla too.

--

to prevent them to steal ur graphics... in your <img> tags... put:

galleryimg="no"

so it would be:
Code:

<img src="youpic.gif" galleryimg="no">



this is to prevent that image toolbar from popping up on IE6 when u mouseover ur images.



complete simply working javascript password generator file. Use letter, vowels, consonants (uppercase and lowercase) arrays to create a really random and secure password. improved security using time functions to initialize random number generator.
Categories : Java Script, HTML, Security, Authentication, Strings
How to get the Focus (Cursor) into a Form-Element.
Categories : HTML, Java Script
showing Help (assistance) to the user while filling html forms.
Categories : HTML, Java Script, Form Processing
Conditional Check - a script that allows a user to submit a form only if the user check a checkbox.
Categories : HTML, Java Script, Form Processing, Beginner Guides
Enchancing dd/mm/yyyy forms with unobtrusive javascript
Categories : Java Script, HTML, User Interface, Date Time
How to create <SELECT> menues that change on the fly according to other <SELECT> menues on the page?
Categories : Java Script, HTML
Javascript linked dropdowns
Categories : Java Script, HTML, Classes and Objects
Javascript animated menu items
Categories : DHTML, CSS, Java Script, HTML
Bouncing Marquee at Status Bar
Categories : Java Script, HTML, Browsers
A damaged image generator (class) for validating text. CAPTCHA - Completely Automated Public Turing test to tell Computers and Humans Apart
Categories : PHP, PHP Classes, Security, GD image library, Security
Check if Javascript is Enabled or Disabled - Works in all Browsers
Categories : Java Script, HTML, Web Browsers
Page Loading Message shown during the time your site's page is being loaded.
Categories : HTML, CSS, Java Script
Javascript Background Scroller
Categories : Java Script, CSS, HTML
hick
Categories : HTML, Java Script
Clock at Status Bar
Categories : Java Script, HTML, Date Time
 Erick Schluter wrote : 1215
I have tried the things you said and must say the `oncontextmenu` is working in Safari v. 1.2.3 but will not work in Internet Explorer 5.2.3 for the Mac. 

Also when I decide to `drag` the image to my desktop from within Safari  I can still take the image. And if all of this will not work I can always make a `screenshot`...

I have tried to solve these problems a while ago, but didn`t found a solution. Maybe it is because I am working on a Mac, and the Mac just doesn`t care about these securities and ignores them ?
 
 Boaz Yahav wrote : 1217
These defenses are for someone that does not know his browser. Going to Tools -&gt; Internet Options -&gt; Security -&gt; Custom Level and disabling Active Scripting will make these defenses useless in IE.

There are much more advanced and complicated ways to do this but you can`t ever take Print Screen away :)
 
 Erick Schluter wrote :1218
So the only thing would be copyrights and so..?