TRENDING NEWS

POPULAR NEWS

Hiii Im Learning Python From

How do I block inspect element on my website?

It is not really possible to completely block inspect element on your website.But you can block some popular ways of accessing it. some of them includeUse of F12 key on the browser:This can be blocked using javascript key event listener. Use the below script to do accomplish it.$(document).keydown(function(e){
if(e.which === 123){

return false;

}

});
2. Use of Right clickYou can block this using javascript or with just your html

or$(document).bind("contextmenu",function(e) {
e.preventDefault();

});
3. Use of other shortcuts involving Ctrl keys
Your body content

4. By temporarily removing DOM when inspector is openedWhat the below snippet does is to detect when the debugger is opened, and removes the code and stores the code in a variable and and when the debugger is closed, it returns it.var currentHtmlContent;

var element = new Image();

var elementWithHiddenContent = document.querySelector("#element-to-hide");

var innerHtml = elementWithHiddenContent.innerHTML;



element.__defineGetter__("id", function() {

currentHtmlContent= "";

});



setInterval(function() {

currentHtmlContent= innerHtml;

console.log(element);

console.clear();

elementWithHiddenContent.innerHTML = currentHtmlContent;

}, 1000);

copied from Jonas.
Here #element-to-hide is the id of element you want to hide
and some other ways I wish I could discuss here.#wiki

How do I logout from Quora?

From our Help Center article, How do I logout from Quora?:You can logout from Quora by clicking on the Profile menu at the top-right. You should see a Logout link at the bottom of the dropdown menu that appears.On the mobile apps and mobile web, go to the “You” tab, click the “…” icon, and then select the “Logout” option that appears at the bottom of the menu.For more information about Quora’s features and frequently asked questions, check out our Help Center.

TRENDING NEWS