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
    Hello, I am using a few Ajax methods on a website... for gathering news, sending emails and updating profiles. Is there a way I can make a document that is used to gather the Ajax output not directly accessible?

    I am submitting forms using action="[~xx~]" and I would like to make document xx not directly accessible if someone was to copy/paste the URL in to their browser.

    I was thinking of doing my own idea using $_SESSION but wondered if someone else had already come up with something.

    Thanks


    *** I think I found out a way ***

    check if the $_SERVER[’HTTP_REFERER’] is set or not. Seems to work
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart