• Hello, thank you for sharing such a nice plugin with us. I detected a problem that I observed and wanted to share it with the developers.

    Suggestion: Blur Effect option can be added so that texts in the background are not readable. Thanks.

    Problem: Right-click on the web page and select Inspect. Then hover over <div class=”age-gate-wrapper”> from the codes on the right and say delete the element. The page is no longer unblocked and you can see the content comfortably.

    As a solution to this; An option to block right clicks with a mouse can be added to the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Phil

    (@philsbury)

    Hi @delidolu1adam,

    Thanks for your suggestions. I’ll keep these in mind for further releases.

    The issue with blocking right click is that a savvy user can just hit F12 and bring up dev tools that way. Or, they could just disable javascript. If it’s really vital that users see no content, you can use the PHP render method however that would mean having no caches enabled on the site.

    Thanks
    Phil

    Thread Starter delidolu1adam

    (@delidolu1adam)

    Yes you are right, that’s why you should block the mouse right button and f12 key at the same time.

    Example code to disable MRB and F12 key

    <SCRIPT LANGUAGE="Javascript">
    //////////////////////////////////////////////
    // Disable MOUSE RIGHT CLICK and F12 key
    //////////////////////////////////////////////
       document.onkeypress = function (event) {
           event = (event || window.event);
           if (event.keyCode == 123) {
              //alert('No F-12');
               return false;
           }
       }
       document.onmousedown = function (event) {
           event = (event || window.event);
           if (event.keyCode == 123) {
               //alert('No F-keys');
               return false;
           }
       }
    document.onkeydown = function (event) {
           event = (event || window.event);
           if (event.keyCode == 123) {
               //alert('No F-keys');
               return false;
           }
       }
    var isNS = (navigator.appName == "Netscape") ? 1 : 0;
    var EnableRightClick = 0;
    if(isNS)
    document.captureEvents(Event.MOUSEDOWN||Event.MOUSEUP);
    function mischandler(){
    if(EnableRightClick==1){ return true; }
    else {return false; }
    }
    function mousehandler(e){
    if(EnableRightClick==1){ return true; }
    var myevent = (isNS) ? e : event;
    var eventbutton = (isNS) ? myevent.which : myevent.button;
    if((eventbutton==2)||(eventbutton==3)) return false;
    }
    function keyhandler(e) {
    var myevent = (isNS) ? e : window.event;
    if (myevent.keyCode==96)
    EnableRightClick = 1;
    return;
    }
    document.oncontextmenu = mischandler;
    document.onkeypress = keyhandler;
    document.onmousedown = mousehandler;
    document.onmouseup = mousehandler;
    </script>
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Suggestions and Problem’ is closed to new replies.