How to disable Ctrl+U using Javascript

I just want to disable Ctrl+U and Ctrl+C event. The primary purpose of doing this is, preventing users from downloading any image or copying content from my website easily i.e. pressing Ctrl+U for viewing my webpage’s source code or pressing Ctrl+C for copying content directly from my webpage.

Currently, I am using this piece of code but it disables my entire keyboard

    /*function check(e)
    document.onkeydown = function(e) {
            if (e.ctrlKey && (e.keyCode === 67 || e.keyCode === 86 || e.keyCode === 85 || e.keyCode === 117)) {//Alt+c, Alt+v will also be disabled sadly.
                alert('not allowed');
            return false;

1,580 thoughts on “How to disable Ctrl+U using Javascript”

  1. [url=]where to buy viagra pharmacy[/url] [url=]tadalafil drug[/url] [url=]sildenafil citrate generic[/url] [url=]lowest price cialis 20mg[/url] [url=]ivermectin 3[/url] [url=]can you buy albuterol without prescription[/url] [url=]pharmacy online cialis[/url] [url=]sildenafil 100 mg tablet[/url] [url=]cialis generic online uk[/url] [url=]tadalafil 10mg from canada[/url]

  2. [url=]generic cialis 2.5 mg online[/url] [url=]viagra canada[/url] [url=]tadalafil 20 mg price canada[/url] [url=]buy furosemide 40 mg uk[/url] [url=]generic sildenafil 20 mg cost[/url]

  3. [url=]buy sildenafil online[/url] [url=]ivermectin over the counter[/url] [url=]albuterol mexico price[/url] [url=]buy tadalafil online canada[/url] [url=]where to buy cialis in singapore[/url]

  4. [url=]ivermectin over the counter[/url] [url=]canada cialis online[/url] [url=]prednisone over the counter canada[/url] [url=]how to get cialis pills[/url] [url=]tadalafil 5mg coupon[/url] [url=]cialis daily coupon[/url] [url=]albuterol india[/url] [url=]cialis generic usa[/url] [url=]sildenafil soft tabs 100mg[/url] [url=]canadian pharmacy mall[/url]

  5. [url=]viagra 500[/url] [url=]viagra soft sale[/url] [url=]viagra 6800mg[/url] [url=]cheapest prescription pharmacy[/url] [url=]cost of 10mg cialis[/url] [url=]brand name cialis online[/url]

  6. [url=]order cialis cheap[/url] [url=]how much is tadalafil 5mg[/url] [url=]6 metformin[/url] [url=]buy cheap tadalafil online usa[/url] [url=]tadalafil 5 mg[/url] [url=]lexapro generic[/url] [url=]clomid for sale online uk[/url] [url=]soft tab cialis[/url] [url=]sildenafil gel uk[/url] [url=]cialis over the counter mexico[/url]