We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    Hi folks, I’m wondering if this is possible... I have a page that I want to appear on clicking a link and only if the link if clicked and if a user navigated to this page using another method that they would be redirected. I want to make sure that the page is displayed as per click and not if a user right clicks the link and opens a new tab or window. Another reason is I have a feature that appears in a lightbox and I only want it to appear in this box and not by direct navigation or right click - open new window/tab. I do realise this might be impossible, just wondering if there’s something out there.

    Thanks!
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 4310
      • 2,310 Posts
      Ross,
      There are plenty of "No right click" JS scripts out there that would stop the non standard navigation, if that’s the main objective.
        • 25551 ☆ A M B ☆
        • 1,231 Posts
        Yeah I’m looking at no right click scripts just now but trying to find one that only work for a specific link? I know how annoying no right click is but it’s only for one feature... I also have a fall back if no javascript is enabled, it redirects so that’s that covered. I just wondered if there was a cleaner way to stop a user accessing a page without an exact method of retrieval.
          Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
          AugmentBLU - MODX Partner

          BLUcart - MODX Revolution E-Commerce & Shopping Cart