The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Preventing People From Copy

View previous topic View next topic Go down

Solved Preventing People From Copy

Post by TenzoNakamiXD on April 22nd 2012, 4:24 am

Hi,

I've Seen Some Forum Have They Own Anti-Copy System, and I'm Searching For The Code.
Can You Help Me By Giving Me A Code?
Like If You Block The Word and Try To Ctrl-C or Right-Click Then Copy, It Won't Copy But Will Give You A Popup or Whatever That Say Please Don't Copy.

Regards

TenzoNakamiXD
Forumember

Posts : 113
Reputation : 1
Language : English, Indonesian

http://mhulz-team.forumq.net

Back to top Go down

Solved Re: Preventing People From Copy

Post by Jophy on April 22nd 2012, 7:59 am


Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

Solved Re: Preventing People From Copy

Post by TenzoNakamiXD on April 23rd 2012, 4:51 pm

I Dont Know How To Use The "Script To Disable The Right-Click On An HTML Page"

Can You Help Me Please?

I Mean, I Dont Know Where To Add That Codes.

TenzoNakamiXD
Forumember

Posts : 113
Reputation : 1
Language : English, Indonesian

http://mhulz-team.forumq.net

Back to top Go down

Solved Re: Preventing People From Copy

Post by sivastar on April 23rd 2012, 5:12 pm

Use this code to disable right click.

Code:
<script language=Javascript>
<!--
var message="Function Disabled!";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
//document.oncontextmenu=new Function("alert(message);return false")
document.oncontextmenu=new Function("return false")
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
// -->
</script>

Add in widget.

sivastar
Forumember

Male Posts : 116
Reputation : 14
Language : Tamil
Location : Malaysia

http://www.eegarai.net

Back to top Go down

Solved Re: Preventing People From Copy

Post by TenzoNakamiXD on April 23rd 2012, 5:46 pm

Thanks!

TenzoNakamiXD
Forumember

Posts : 113
Reputation : 1
Language : English, Indonesian

http://mhulz-team.forumq.net

Back to top Go down

Solved Re: Preventing People From Copy

Post by Base on April 23rd 2012, 6:02 pm

Topic Solved & Locked

Base
Forumaster

Male Posts : 10386
Reputation : 1687
Language : English and French
Location : United Kingdom, England

http://forumotionhub.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum