-->

How to Redirect Blog page While Press CTRL+U with JavaScript

Iklan Anda

When we visit a Blog page then generally we use Mouse for doing and managing the task on Browser.  But apart from this there are many keyboard shortcut available for execute the task on browser. Those shortcut functions have added to make browser user friendly.

But now a day’s Content and design theft become very active. And they often use CTRL+U key from keyboard for viewing the page source. Even you have disabled right click function on your Blog but still your contents are copying by others. There are many ways we can manipulate our Blog and protect from content theft. But disabling certain keyboard shortcut is necessary for protecting our Blog content from content thief. Among various keyboard shortcut CTRL+U is very important, because easily user can see page’s source code by using this keyboard shortcut.




But we can disable it different ways. However simply disabling is monotonous process. But we can display a specific warning page or redirect to another Blog page by using javaScript. Previously I have shared about disabling CTRL+U you with simple JavaScript.


How to Disable CTRL+U by Simple JavaScript?

By following below tutorial you can simply disable right click.

Step 1 Go to your Blogger Account and Login to your Blogger Account.

Step 2 Click on ->Template ->Edit HTML

Step 3 And locate by pressing Ctrl+F (Windows) or CMD+F (Mac)

Step 4 And copy the below script and paste it </Head> above/before 



Step 5 Finally hit the Save template

How to Redirect Blog page While Press CTRL+U with JavaScript?

By using above script you can simple disable the right click. But now I will show you how to add a redirect effect while press CTRL+U from keyboard. After adding this script in Blogger template, when a user use CTRL+U to view source code then s/he will be automatically redirect to specific page. You can set any specific page according to your desire.

Step 1 Go to your Blogger Account and Login to your Blogger Account.

Step 2 Click on ->Template ->Edit HTML

Step 3 And locate by pressing Ctrl+F (Windows) or CMD+F (Mac)

Step 4 And copy the below script and paste it </Head> above/before 


Customization


  • Please replace the http://www.prio-soft.tk/ with your desired page URL.
Step 5 Finally hit the Save template

In the above code I have set my Blog home page URL and when a user press CTRL+U then s/he will be automatically redirect to My Blog homepage. Similarly if I add any other page URL then they will automatically redirected on that page. This is just like magic. I hope you would love this trick and apply on your Blog to protect your content.

Iklan Anda

Tags:
Buka Komentar
Template By Muh Akram