preCharge Certified Payments
 

Go Back   Chargeback Forum > Sellers / Merchants > Merchant Resources

Merchant Resources Useful links to industry tools and resources for merchants.

Reply
 
LinkBack Thread Tools Display Modes
Old 03-11-2007, 04:06 PM   #1 (permalink)
inworx
Senior Member
 
Join Date: Mar 2007
Posts: 156
Rep Power: 4 inworx is on a distinguished road
Default Preventing Right CLicks

This is a simple javascript code which I made to prevent right clicks on your site..

<script language="Javascript1.2">
// Set the message for the alert box
am = "Right click feature disabled. By inworx";
// 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>
<script language="Javascript1.2">
// Set the message for the alert box
am = "Site Security: for security reasons this feature is 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>
inworx is offline   Reply With Quote
Old 03-22-2007, 06:02 AM   #2 (permalink)
chandni_aqua
Senior Member
 
Join Date: Mar 2007
Posts: 119
Rep Power: 4 chandni_aqua is on a distinguished road
Default

hey thanks a lot, i was looking out for something like this since long... i would wanna use it for my website at the earliest
chandni_aqua is offline   Reply With Quote
Old 03-22-2007, 09:17 PM   #3 (permalink)
louj
Banned
 
Join Date: Mar 2007
Posts: 139
Rep Power: 0 louj is on a distinguished road
Default

It is a good way to prevent your site from being duplicated. Thanks for the tip and the codes.
louj is offline   Reply With Quote
Old 03-26-2007, 12:15 PM   #4 (permalink)
zeroaccess
Junior Member
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0 zeroaccess is on a distinguished road
Default

thanx for sharing the script mate. wanted a script like this from a long time . i'll use it on my blog as soon as possible thnx.....
zeroaccess is offline   Reply With Quote
Old 03-26-2007, 01:20 PM   #5 (permalink)
Mastermanandy
Junior Member
 
Join Date: Mar 2007
Posts: 22
Rep Power: 0 Mastermanandy is on a distinguished road
Default

Wow thanks for this its perfect, now no-one else can steal stuff from my site
Mastermanandy is offline   Reply With Quote
Old 03-26-2007, 01:27 PM   #6 (permalink)
atulperx
Member
 
Join Date: Mar 2007
Posts: 37
Rep Power: 0 atulperx is on a distinguished road
Default

Hi thanks for this script , i will use it on my blog because i have faces some problems with copy if my article earlier from other bloggers .
atulperx is offline   Reply With Quote
Old 03-26-2007, 02:07 PM   #7 (permalink)
Mastermanandy
Junior Member
 
Join Date: Mar 2007
Posts: 22
Rep Power: 0 Mastermanandy is on a distinguished road
Default

Hmm, it seems that this doesnt work with all browsers, I checked it with opera just now and it wouldn't work. Although im sure with a little bit of editing it can be possible to block any browser from right-clicking.
Mastermanandy is offline   Reply With Quote
Old 03-26-2007, 02:47 PM   #8 (permalink)
atulperx
Member
 
Join Date: Mar 2007
Posts: 37
Rep Power: 0 atulperx is on a distinguished road
Default

I am using firefox and my blog is hosted on blogspot and this script didn't worked on it also and friend sorry for typing failure of your script .
atulperx is offline   Reply With Quote
Old 03-26-2007, 04:58 PM   #9 (permalink)
Mastermanandy
Junior Member
 
Join Date: Mar 2007
Posts: 22
Rep Power: 0 Mastermanandy is on a distinguished road
Default

If you can see, the script is only designed to work with Netsape and IE, so you would have to edit it manually to add any other browsers.
Mastermanandy is offline   Reply With Quote
Old 03-27-2007, 07:42 AM   #10 (permalink)
paypal
Junior Member
 
Join Date: Mar 2007
Posts: 22
Rep Power: 0 paypal is on a distinguished road
Default

This script would not work if the browser has JavaScript disabled. (And, it isn't too difficult to disable JavaScript on a browser either.)
paypal is offline   Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

 
Problem with chargebacks? Call +1 (212) 751-6213 and ask to speak to a chargeback specialist.

Join us on LinkedIn


News, Updates, Alerts & More:

Subscribe in a reader
   


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52