How to disable CTRL+C on your site. ;)
2013-08-01, 08:15 AM, (This post was last modified: 2013-08-01, 08:16 AM by Fierce.)
#1
When you copy something it will paste the whole code not the selected text from your site.

[hide]
PHP Code:
<script type="text/javascript">
var 
isNS = (navigator.appName == "Netscape") ? 0;

if(
navigator.appName == "Netscape"document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);

function 
mischandler(){
return 
false;
}

function 
mousehandler(e){
var 
myevent = (isNS) ? event;
var 
eventbutton = (isNS) ? myevent.which myevent.button;
if((
eventbutton==2)||(eventbutton==3)) return false;
}
document.oncontextmenu mischandler;
document.onmousedown mousehandler;
document.onmouseup mousehandler;
var 
isCtrl false;
document.onkeyup=function(e)
{
if(
e.which == 17)
isCtrl=false;
}

document.onkeydown=function(e)
{
if(
e.which == 17)
isCtrl=true;
if(((
e.which == 85) || (e.which == 117) || (e.which == 65) || (e.which == 97) || (e.which == 67) || (e.which == 99)) && isCtrl == true)
{
// alert(‘Keyboard shortcuts are cool!’);
return false;
}
}
</
script
[/hide]

[Image: banner300x250.png]
Reply
Share This Thread :

2013-08-01, 08:56 AM,
#2
Just paste in the head tags?
Or do I need to take care of anything else also?
Reply
2013-08-01, 12:53 PM,
#3
Just paste in the head tags bro.
And try to select some text from your page and then paste it anywhere.

[Image: banner300x250.png]
Reply
2013-08-02, 05:42 PM,
#4
(2013-08-02, 04:15 PM)Aleks Wrote: Thanks for the share <3 (: .

It's nothing bro. Cheers!

[Image: banner300x250.png]
Reply
2013-08-02, 06:00 PM,
#5
You can also disable right-click with this.
Code:
oncontextmenu="alert('Right click is disabled'); return false"

[Image: Cq7OnC1.png]
If You Don’t Build Your Dreams, Someone Will Hire You To Help Build Theirs
Reply
2013-08-02, 06:35 PM,
#6
(2013-08-02, 06:00 PM)Nuutero Wrote: You can also disable right-click with this.
Code:
oncontextmenu="alert('Right click is disabled'); return false"

There are some fags that highlighting the text or image and then just CTRL+C. They are not right clicking like newbies.

[Image: banner300x250.png]
Reply
2013-08-02, 06:50 PM,
#7
(2013-08-02, 06:35 PM)Fierce Wrote:
(2013-08-02, 06:00 PM)Nuutero Wrote: You can also disable right-click with this.
Code:
oncontextmenu="alert('Right click is disabled'); return false"

There are some fags that highlighting the text or image and then just CTRL+C. They are not right clicking like newbies.

It was meant for everything else, like showing the whole source code. I know it's pretty easy to bypass but it might work for some newbies trying to copy your site. You could also encode the whole code first and then disable right click.

[Image: Cq7OnC1.png]
If You Don’t Build Your Dreams, Someone Will Hire You To Help Build Theirs
Reply
2013-08-02, 07:45 PM,
#8
(2013-08-02, 06:50 PM)Nuutero Wrote:
(2013-08-02, 06:35 PM)Fierce Wrote:
(2013-08-02, 06:00 PM)Nuutero Wrote: You can also disable right-click with this.
Code:
oncontextmenu="alert('Right click is disabled'); return false"

There are some fags that highlighting the text or image and then just CTRL+C. They are not right clicking like newbies.

It was meant for everything else, like showing the whole source code. I know it's pretty easy to bypass but it might work for some newbies trying to copy your site. You could also encode the whole code first and then disable right click.

You're right bro. Thanks for the addition. This will help.

[Image: banner300x250.png]
Reply
2013-08-02, 10:18 PM, (This post was last modified: 2013-08-02, 10:20 PM by rajabadariqbal.)
#9
dont mind but its useless for those who know how to use internet they just open source page and copy all data even with heading.
Reply


Related Threads
Thread Author Replies Views Last Post
  [GET] Movie Site LP Kjartansson 57 6,604 2018-06-26, 01:42 PM
Last Post: Kjartansson
  [Rankxl]Build a 6-Figure Niche Site With SEO AndyRucker 35 2,920 2018-06-24, 10:51 PM
Last Post: siddakrish
  [Method] How to Build an Authorithy WhiteHat Site russ0 1 140 2018-05-01, 08:46 PM
Last Post: ElitesHelper
  [TUT] How to make your own Streaming site using Google Drive dhihi 10 1,759 2018-03-26, 10:25 AM
Last Post: atebon
  [Tutorial] SILOing a WordPress Site. shaunm 25 2,213 2017-12-28, 09:29 AM
Last Post: shaunm





About Us | Contact Us | CPA Elites | Advertise | Stats

© 2013-2018 CPA Elites Ltd
Enhanced by MyBB and WallBB
Return to top