Skip to main content

Disable Web Page Right Click or Hide Page View Source Option

Hello, developers and bloggers! This article is usually for you. In this article TrickPk admin will show you how to deactivate right-clicking on a webpage and hide your website's source code ie (Disable view-source:).

These functions are possible by using below script code. All of your website's and blog's source codes can be hidden. No one will be able to access or copy the code of your web page with using this script.

What is the source code of a page?

A type of file called a page source contains the HTML, Javascript, CSS, PHP, etc. code that is used to construct a web page. This capability is built into every online browser and works with any page that doesn't include script code to turn it off. When viewing or stealing any crucial code, one uses the page source code.

How to View Any Website Source Code?

Simply follow these easy steps to inspect the page source code of any website.

1. Open Google.com

2. Right-click the mouse, and a variety of options will appear. or Press Ctrl+U

3. The "View Page Source" option will appear.

4. You will see the Google Home source code.

How to Disable Web Page Right Click or Hide Page View Source Option

It's time to do best something now. You've come here to learn how to prevent the right-click mouse button from being used on any website. You will be given clear instructions on How to Disable view-source: function in Blogger. Read the instructions below carefully and follow them.

  1. Open blogger.com

  2. Select your blog in which you want to add this code or feature.

  3. Go to ‘Template’ and then select ‘Edit Template’.

  4. Now, just copy the below script code

  5. <script language="javascript"> document.onmousedown=disableclick; status="www.TrickPk.com"; Function disableclick(e) {   if(event.button==2)   {     alert(status);     return false;   } } </script>

  6. Now, go to your template and find the </head> section.

  7. Just paste the above script code before closing the head tag or section.

  8. Save your template

  9. That’s all.

Disable Web Page Right Click or Hide Page View Source Option

For other Web Developers

  • Just copy the above script code.

  • Simply open Designing Code and put this script code anywhere in the head section.

Outcomes:

Finally, this script code makes it simple to hide the source code of every web page. To prevent code theft, you can hide all of your website's source codes. Hiding the page source and turning off right-click functionality on a website is a very easy trick. If you do that's, leave a comment below with the URL of your website to have us check.

Comments

Popular posts from this blog

10000+ New Facebook VIP Stylish Bio Symbols 2024

Hello Friends, agar aaf bhi Instagram or Facebook account ky liye vip bio symbols search kar rahe hy to yaha par hum aaf ky liye facebook vip account bio symbols dene wale hai. Dosto aaf sab ka bahut bahut shukria hamari blog per visit karny ky liye, So dosto Aaj hum aafke liye Instagram or Facebook VIP Account New Bio Symbols 2024 lekar aaye hai jise aap Bio me copy aur paste karke apne facebook profile ko Vip account bana sakte hai. Yaha par humny Facebook aur Instagram vip account bnany ke liye tmam qism ke VIP bio symbols share kiye hai yaha par aafko VIP Symbols ke sath sath long vip bio symbols + Fb aur Instagram Stylish bio symbols bhi mil jayege. Aaf yaha se kisibhi Bio symbols ko copy karke fb account me paste kar sakte hai.To chaliye ASCII art Instagram, Facebook Stylish symbols ki taraf barhty hy Also Read: Facebook VIP Account Latest Bio Symbols Facebook VIP Account Latest Bio Symbols Part Part 1 Facebook VIP Account Latest Bio Symbols Part Part 2 Faceboo

100% Download Free Nadra Polio Vaccination Certificate Online

Polio vaccination is mandatory for all international travelers from Pakistan, regardless of age, to prevent the spread of polio to other countries. Pakistan remains among only two countries in the world where wild poliovirus remains in circulation, so it is crucial to ensure that anyone crossing borders or traveling from infected countries is vaccinated. Nadra Polio Vaccine For Overseas Air Travel Polio Vaccination Card Kesy Hasil Kary If you are planning to travel abroad, one document you may need to have on hand is a polio certificate. This certificate serves as proof that you have received the polio vaccine, which is required for entry into some countries. In this article, we'll cover everything you need to know about polio certificates, including why they're required, how to get them, and more. What is a polio certificate? A polio certificate is a document that serves as proof that you have received the polio vaccine. This vaccine is required for entry into some count

Procedure How to Set Rose Telegram Bot

The Rose bot is one of the most popular moderator bots for Telegram. There are many other Telegram groups bot for it but this one is the best... Telegram groups can have up to 100k members, that's a huge number. Managing such a large group seemed impossible. But, group managing bots like the Rose bot make it really simple. In this article, we will share a guide to help you set up the Rose bot on Telegram . What is Bot Rose? The Rose bot is one of the most popular moderator bots for Telegram. There are many other Telegram groups for it but this one is the best and most popular one out there. How to set rose telegram bot? To set up Bot Rose on Telegram, follow these steps: Open Telegram Group : To add Rose bot in your Telegram Group.  Add @MissRose_bot to group : Tap Add Member in your Telegram group. Find @MissRose_bot and add rose bot to group Give Admin Rights to Rose bot : you have to give Admin rights or Admin permission to Rose bot after adding it to your group. Send /conn