I have a simple paypal button with 2 landing pages for cancellations and a thank you page.
How am I able to hide these landing pages/nodes from the general view (out of recent, etc)
and only allow their access to be accessed when coming from paypal?
Thanks

Comments

Loaded question

That's a bit of a loaded question because there multiple ways to do this. But generally what you want to do is use a module (custom or otherwise) that will do a lot of this work for you.

You can also use (sometimes) htaccess rules to hide your pages from the general public.

And in terms of allowing only Paypal in, you need to make use of a PHP server variable (HTTP_REFERRER) and even that is not 100% guaranteed to work every time. You'll have to trust that you've done a good enough job of hiding the page from regular eyes that only Paypal will truly see it anyways, relieving you of the necessity to have to check whether the viewer is coming from Paypal or not.

Spiro Floropoulos
(Floropoulos Services)
www.spirofloropoulos.com

Thank you. I also see how

Thank you.
I also see how easily this can be spoofed.
Its more of a "Thank you" and a "Cancellation" page more than anything, and I suppose its not really needed. I just wanted to display content when a user cancelled a paypal transaction in order to gain feedback or to add further information.

I suppose that I could make a

I suppose that I could make a generic page with PHP delivering content depending on the referrer.
May end up taking that approach. Thanks for your reply.