January 31, 2008

Disable right-click

Prevent your visitors from stealing anything off your blog or website by disabling right-click. The truth is, some people just go to your blog to snoop around and steal your pictures, source code, pictures and stuff.

Just copy this code below in the <HEAD> section of your website/blog. :)


<script language="Javascript1.2">

// (C) 2003 CodeLifter.com
// Source: CodeLifter.com
// Do not remove this header

// Set the message for the alert box
am = "Function disabled!";

// do not edit below this line
// ===========================
bV = parseInt(navigator.appVersion)
bNS = navigator.appName=="Netscape"
bIE = navigator.appName=="Microsoft Internet Explorer"

function nrc(e) {
if (bNS && e.which > 1){
alert(am)
return false
} else if (bIE && (event.button >1)) {
alert(am)
return false;
}
}

document.onmousedown = nrc;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (bNS && bV<5) window.onmousedown = nrc;

</script>


You can change the warning message "Function disabled" to anything that you like and you're good to go! I don't use this trick on this blog though. LOL. ;) ;) ;)

5 comments:

2cents said...

added this blog Honney..Musta na?

♥ ChaLyza ♥ said...

Hi cool disabled right click there.. I actually had silent disabled right click in my other blog. It bothers me sometimes specially on tags when you tagged to somebody they can't copy it..

BTW, i'm going to add this blog too here http://chalyza07.blogspot.com just add mine too. See u around sometimes

idealpinkrose said...

marami ngang stealer sis kaya nga di ako naglalagay ng pic ko eh...hehehe...

btw, added you to my technorati fave, please add mine, too here. thanks a lot!

idealpinkrose said...

and paki-add narin ang link ko sis...linked you up, too!

Ely said...

macopy nga code na to sa photoblog ko. hehe. Thanks!

Visitors

Labels

About Me (9) Accessories (3) Adam Levine (1) Animalandia (1) Anniversary (1) Apple (1) Ayesha (3) Balicasag Island (1) beach (1) Beauty secrets (23) blog money (3) Blogger hacks (2) Blogosphere (11) Bohol (2) Books (1) Business (6) Call center life (2) Camarines Sur (1) Camping (1) Car accessories (1) Caramoan (1) carpool (1) Casino (1) Chauvet Slimpar 38 (1) cheap finds (1) chocolate cake (1) city (1) Computers (2) cooking (1) Dentist (1) Diet (24) Disneyland (1) Divisoria (1) Environment (1) Facebook (2) Faith (1) Fashion (1) fire pits (1) Fire prevention (1) Fitness (2) Food (2) Funny (1) Gadgets and Electronics (1) Greetings (12) Greggy's Corner (17) Harley Davidson (1) Health (18) Holiday (1) holiday shopping (1) Home sweet home (27) I love God (1) Insurance (9) Internet (13) internet marketing (1) iPods (1) Jobs (2) Just For Kids (4) Just My P.O.V (3) kitchen (1) Kitchenware (1) Mac (1) Mandatory Helmet Act of 2010 (1) marketing (1) Maroon 5 (1) Marriage (2) Matukad Island (1) Metro Manila (1) Mobile blogging (1) Money Matters (3) Moolah (1) motherhood (1) Music (4) music videos (2) musical instrument (1) My Happy Family (14) Networking (3) online selling (1) Online shopping (17) Parenting (3) PayPal (3) PC Cleanup PowerTool (1) personal finance (1) Photoblog (1) PNR (1) Pregnancy (4) Prison Break (1) Pro-blogging (3) raising kids (1) Ramblings (1) Rants (1) Running (1) savings (4) Senti (8) shopping (13) shopping tips (1) Smallville Addict (7) snorkeling (1) social media (1) Social Networking (2) souvenirs (1) Sports (2) sportscar (1) Starbucks (1) summer (1) Survivor Sweden (1) Technology (23) The Voice (1) train (1) Travel (6) vacation (1) Wellness (9) Working Mommy (25)
There was an error in this gadget