Call: (209) 560-6611

Disable Ctrl-c

Date: May 1, 2012 Author: ang Category: Affordable Web Design Internet Tips Tutorials WordPress Tags: Comments: 2

Is there a way to stop people from copying text on my web page? There is always a way for visitors to copy text and images from an HTML web page. It is possible to make it more difficult for visitors to copy your website text content. Most people use the "Ctrl-C" keys to copy text. You can disable the Ctrl-c action or the copy text key command from happening on your web page by doing the following.

How to disable Control copy(C) on your web page

  1. Place this code snippet in the header section of your html document.

     Javascript |  copy code |? 
    01
    <script type="text/javascript">// <![CDATA[
    02
    function onKeyDown() {
    03
      // current pressed key
    04
      var pressedKey = String.fromCharCode(event.keyCode).toLowerCase();
    05
      if (event.ctrlKey && (pressedKey == "c" || 
    06
                            pressedKey == "v")) {
    07
        // disable key press processing
    08
        event.returnValue = false;
    09
      }
    10
    } // onKeyDown
    11
    // ]]></script>
  2. If you have a WordPress website you can access your header code by logging into admin then clicking on 'Appearance' > 'Editor' > 'Header'. Don't forget to save your changes.

Again, users can still view the source code of your web page and copy your text there if they're savvy enough. When you disable control c or control copy, you're only making it more difficult for them to copy you're not preventing them from copying your text.

2 Comments
  1. Date: August 22, 2012
    Author: ang

    The code disabling 'view source' seems to be working on your site. I've fixed the spelling error and thanks for that. To further protect your content, you can <a href="http://2slick.com/web/how-to-copyright-an-image/affordablewebsitestips/tutorials" title="copyright web page contents" rel="nofollow">copyrite it</a>. Another way stay on top of your competition is to use better SEO. Purchasing a domain and updating a blog page weekly/daily is a good start. [Reply]

  2. Date: July 25, 2013
    Author: Emposmows

    カシオデザイナー腕時計的確 [url=http://www.pradabrandjp.com/プラダ-アウトレット-c-16.html]プラダ アウトレット[/url] に彼らの範囲を維持する [url=http://www.pradabrandjp.com/プラダ-アウトレット-c-16.html]prada アウトレット[/url] ために管理している内部 [url=http://www.pradabrandjp.com/プラダ-アウトレット-c-16.html]プラダ 財布[/url] 現代現代スタイル。さら [url=http://www.pradabrandjp.com/プラダ-アウトレット-c-16.html]www.pradabrandjp.com/プラダ-アウトレット-c-16.html[/url] prada アウトレット にと比較したの日付になっ [url=http://www.seikobrandjp.com/]セイコーマート[/url] ている、彼らのデザインは、 [url=http://www.seikobrandjp.com/]セイコー5[/url] に見つける方法ん。カシオ時 [url=http://www.seikobrandjp.com/]セイコー ルキア[/url] 計でしそれがないよう [url=http://www.seikobrandjp.com/]www.seikobrandjp.com/[/url] セイコー ルキア に今日年未来へのよう0似合う [url=http://www.paulsmithjpkan.com/]ポールスミス 財布[/url] 最近このごろ現在。これは [url=http://www.paulsmithjpkan.com/]ポールスミス バッグ[/url] カシオの時計になります [url=http://www.paulsmithjpkan.com/]ポールスミス アウトレット[/url] 素晴らしい何らかの理由で [url=http://www.paulsmithjpkan.com/]www.paulsmithjpkan.com/[/url] ポールスミス アウトレット あらゆる機会のためののためにとのために [url=http://www.oakleykan.com/]オークリー 激安[/url] 選択。 シンプルに見て、より堅牢 [url=http://www.oakleykan.com/]オークリー サングラス 激安[/url] 強いニマルシンプル [url=http://www.oakleykan.com/]オークリー フロッグスキン[/url] で幅広い選択肢が上あと分 [url=http://www.oakleykan.com/]www.oakleykan.com/[/url] オークリー 激安 厚い感じ、あなたが間に [url=http://www.sytechpark.org/]セイコー 時計[/url] 想像すべてとの間に。カシオの [url=http://www.sytechpark.org/]グランドセイコー[/url] 時計はで得ることで利用可能に含まれる [url=http://www.sytechpark.org/]セイコー ルキア[/url] もあるもっとエリート範囲 [url=http://www.sytechpark.org/]www.sytechpark.org/[/url] セイコー ルキア も含む多くの便利なアクセサリ [url=http://www.audiogeekgear.com/]コーチ アウトレット[/url] ーを。これらの機能が含ま [url=http://www.audiogeekgear.com/]コーチ 財布[/url] のようなさえ世界の時刻表 [url=http://www.audiogeekgear.com/]www.audiogeekgear.com/[/url] コーチ アウトレット 示、温度 [url=http://www.audiogeekgear.com/]コーチ バッグ[/url] 計、オートカレンダー、と [url=http://www.coachsalekan.com/]コーチ アウトレット[/url] 中明るいコーティングダ [url=http://www.coachsalekan.com/]coach アウトレット[/url] イヤル暗い場所で - パーフェクト長続き [url=http://www.coachsalekan.com/]コーチ 財布[/url] 光照明照明提供するために、いずれかの [url=http://www.coachsalekan.com/]www.coachsalekan.com/[/url] コーチ アウトレット 訪問は、または実際に、あなたが必要とするかもしれないあなたは持っている必要がありますは時間を知っているたい [Reply]

Leave a Reply

Your email address will not be published. Required fields are marked *

Before you post, please prove you are sentient.

What is 9 * 8?

Before you post, please prove you are sentient.

what is 3 plus 5?