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
PHP Web Logs (BLogs)
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
Submit Site
Forex Trading Online forex trading platform

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 : 6729
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
Clock at Status Bar
Categories : Java Script, HTML, Date Time
MD5 secured login
Categories : PHP, Java Script, Authentication, Security
Unobtrusive javascript for maintaining scrollable layer state
Categories : DHTML, Java Script, HTML
Java Script Based Navigation
Categories : HTML, Java Script, Navigation
Enchancing dd/mm/yyyy forms with unobtrusive javascript
Categories : Java Script, HTML, User Interface, Date Time
Builds JavaScript that updates the contents of one selector based on another.
Categories : HTML, Java Script, PHP, Complete Programs, General
Why it is not possible to preset a value in a file upload field
Categories : HTML, Security, Filesystem, Beginner Guides
Bypassing Plugin / FLASH Activation
Categories : Java Script, Web Browsers, Security, Flash
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
How to create <SELECT> menues that change on the fly according to other <SELECT> menues on the page?
Categories : Java Script, HTML
Javascript Background Scroller
Categories : Java Script, CSS, HTML
Password using php, Javascript, and html form
Categories : Security, PHP, Authentication, Java Script
Bookmarklets are simple tools that extend the surf and search capabilities of Netscape and Explorer web browsers.
Categories : Java Script, HTML, General
How to get the Focus (Cursor) into a Form-Element.
Categories : HTML, Java Script
 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..?