I have created a page:
with a custom template that contains the code to grab the ipn response from paypal etc.
Now, I need to redirect users accidentally or on a purpose access
I want to allow that to only when a user is redirected from paypal url. e.g. if it contains
https://paypal.com then it's ok, but all other access redirect to WP homepage.
How to do that?