Resource icon

XF 2 Tip Do Not Copy

DareSec

Inforc3r
Staff member
Administrator
Moderator
S.V.I.P Member
Collaborate
Registered
Joined
May 25, 2019
Messages
1,388
Points
523

Reputation:

DareDevil submitted a new resource:

Do Not Copy - Disable Copying in forum

Of course, we do not want the original content we share in our forum to be copied and used in other forums and sites.

Even though there are plugins available on our site xenforo.gen.tr, I will share with you a way to protect our content with a plugin-free and very simple code structure.

AdminCp ---> Appearance And in Languages ---> Templates ---> templates we find our
PAGE_CONTAINER template ...


<script> $(document).bind('copy', function(e){ return false; }); </script>...

Read more about this resource...
 
  • Like
Reactions: XSP

kullas

Collaborate
Collaborate
Registered
Joined
Jul 21, 2019
Messages
136
Points
103

Reputation:

This just for newbie :p
 

kullas

Collaborate
Collaborate
Registered
Joined
Jul 21, 2019
Messages
136
Points
103

Reputation:

Why Two script tags?

Why not looks correct way:

JavaScript:
<script>
$(document).bind('copy', function(e){
alert('Oops!.. Sitemizden İçerik Kopyalamak Yasaktır !!!'); // Make alert for your visitors.
return false;
});
</script>
 

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,719
Points
823

Reputation:

Warfare

[Your Welcoming Staff Member]
Staff member
Administrator
Moderator
+Lifetime VIP+
V.I.P Member
Collaborate
Registered
Joined
Apr 29, 2020
Messages
342
Points
103

Reputation:

Thank you for this, even though there are other ways around it, the average user that is not "savvy" and uses right click it works like a charm. I just tested it on the forum I am building. So thank you very much:

Screenshot 2020-05-08 at 7.37.09 AM.png
 

kari

Member
Registered
Joined
Jan 15, 2019
Messages
12
Points
13

Reputation:

This modification just piss off users nothing more.If u disable javascript in your browser u can easily bypass this .
 
Top