Support » Plugin: Developer Tools Blocker » Block Control + U Chrome Browser

  • Hi, your plugin works perfectly until this time, but in google chrome, with control + U any user can see the code behind the web, could you improve the plugin adding this function to block control + u. I appreciate your work. Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author SwiftNinjaPro

    (@swiftninjapro)

    After doing some tests with the plugin, I can’t seem to recreate the problem. controle + u is already blocked. Check to see if you have the latest version of the plugin.

    Thread Starter joshuacisneros

    (@joshuacisneros)

    Yes you are right, but I don’t know how to prevent users right-click or control + u on an inframe, your plugin works perfectly on all site except with the iframes like this
    <iframe src="https://app.powerbi.com/view?r=eyJrIjoiOWU0ZThiMGQtMzcwOC00MmQ4LWJhZjItZDk0Y2QyODMzODA5IiwidCI6IjcyNDQ1YmFhLTMxNGYtNGM5Mi05MzY0LTFjYjJjNDkyNGJmNiIsImMiOjN9" width="800" height="600" frameborder="0"></iframe>

    Plugin Author SwiftNinjaPro

    (@swiftninjapro)

    I see the issue is the iframe. Because an iframe is open on a seperate origin, the plugin cannot control what happens there. Unless the website that iframe opens, specifically prevents that key, I have no way of blocking that, because it is a seperate origin, and the browser will not allow that control for the users security. unfortunately there is no way to control what goes on in an iframe. as soon as a user clicks off the page origin, all scripts connected to blocking a keypress are disabled, and the iframe now controls the keypresses, since an iframe is basically another website. sorry for the inconvenience.

    Thread Starter joshuacisneros

    (@joshuacisneros)

    I am trying to hide de SCR=” ” code from the iframe Do you know any trick, in case a user can see my Web Code I only need to hide SCR URL.

    Plugin Author SwiftNinjaPro

    (@swiftninjapro)

    I guess you could try this:

    – create a page with a URL you will allow the user to see.

    – check if the page is accessed from localhost.

    – only redirect localhost to the iframe src.

    – set the page URL to the src of the iframe.

    now, even if the user clicks on the URL, they still won’t see the other URL the iframe redirected to. Note: the IP detection and redirect have to be done server side (php) so the URL will not be sent to the client if they access the page directly.

    If you need to write php on a wordpress page, I found a plugin for that here: https://wordpress.org/plugins/php-everywhere/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Block Control + U Chrome Browser’ is closed to new replies.