Post by moco123 » Tue Jan 12, 2021 10:30 am

Hello friends,
I would like to disable right click on my website (Opencart3.0.3.3).

I saw a very simple method:
https://www.isquaretechnologies.com/dis ... -web-page/

Code: Select all

$(document).ready(function(){
$(document).bind("contextmenu",function(e){
return false;
});
});
As I'm not good at code, I don't know where to paste the code.
Can any friend tell me how to do it?
Do we need to modify these codes?

Many Thanks!
Last edited by moco123 on Thu Jan 14, 2021 9:27 am, edited 1 time in total.

Newbie

Posts

Joined
Sun Oct 18, 2020 12:03 pm

Post by Cue4cheap » Tue Jan 12, 2021 10:56 am

In my opinion this is a waste of time. At one time might have stopped people but no longer.
Mike

cue4cheap not cheap quality


Active Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by thekrotek » Tue Jan 12, 2021 3:05 pm

Yes forget about it. This is absolutely useless and stupid nowadays.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member
Online

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by paulfeakins » Tue Jan 12, 2021 6:55 pm

It will only stop the laziest people, but even so it could be worth it.

You should put it in the header:
/catalog/view/theme/default/template/common/header.twig

And it will need to be inside <script> tags.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by moco123 » Thu Jan 14, 2021 9:26 am

Thanks all your reply. I just want to protect the website a little bit. :drunk:

Newbie

Posts

Joined
Sun Oct 18, 2020 12:03 pm
Who is online

Users browsing this forum: No registered users and 18 guests