• Hello,
    How can I disable F12, ctrl+shift U/I/C and all of the other inspector shortcuts with code? (no plugins)

    If possible – a code that I can put in the “Theme file editor” or the “Additional CSS” or in code files in cPanel, but please with instructions on exactly where to put it, as I am new to code ??

    Thank you very much! ?? ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello @avscor

    I didnt get it. Do you want to avoid the users inspecting your site with the Browser’s DevTools?

    Thread Starter avscor

    (@avscor)

    Hi,
    Yes, I don’t want them to be able to access my code by pressing F12, ctrl+shift U/I/C, and all of the other inspector shortcuts

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You cannot disable the inspector. You can install plugins that break right-click functionality, but you cannot remove the inspector from browser menus. With right-click disabled, you can make it a pain to use, but you cannot remove or completely disable it.

    What are you trying to hide?

    Thread Starter avscor

    (@avscor)

    I don’t want to disable the inspector, I want to disable the inspector’s keyboard shortcuts.

    The shortcuts are – F12, ctrl+shift U/I/C, and all of the other inspector’s keyboard shortcuts.

    I know others on the web did it with simple code, I just want to do it too, and don’t know how…

    And the reason is I’m trying to prevent stealing my content (which is possible with the inspector). I disabled right-click and text and images copy with code. Now I want to disable the inspector’s keyboard shortcuts.

    Please help me do that, it’s very important for me ??

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    https://stackoverflow.com/questions/20659943/disabling-inspect-element-right-click-and-f12-in-google-chrome

    But “stealing your content”, if done in some automated way, is not done via the inspector. It’s done via scripts that read your site, copy content, etc.

    There’s really nothing you can do to stop a determined ‘bot.

    Thread Starter avscor

    (@avscor)

    In terms of bots, there is nothing to do.

    But I want to block the known ways (i.e. F12, ctrl+shift U/I/C) from real site visitors, as some of them are my competitors, and I know they know only these methods, and will give up if they’ll see it’s not working for them…

    So, how can I do it with code?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I’ve given you the links… it’s not a WordPress problem. This is something you’ll need to research. And really, you cannot stop people from seeing your content. All one needs to to is type “view-source:https://example.com“, after all.

    Focus on good content. If people are stealing your content, consider this:

    www.remarpro.com does not providing hosting for sites, it provides the software for other people to build their own sites on their own hosts. WordPress’ philosophy and bill of rights permit people to use WordPress software for any reason they want, without any enforcement over legality or illegality. We leave that up to the webhosts. In cases of theft, abuse, harassment, or other such behavior, your best recourse is to contact their web host directly. You can use WHOIS to determine where they’re hosted, as well as resources like https://www.whoishostingthis.com to find relevant information.

    Thread Starter avscor

    (@avscor)

    Oh, sorry, it showed me only one comment there so I thought there is no more.
    I’ll investigate further ??
    Thank you! ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to disable inspector’s shortcuts with code?’ is closed to new replies.