Skip to main content
edited title
Source Link
Derfder
  • 2.1k
  • 12
  • 34
  • 57

Don't allow access from Redirect user toif the page but only from PayPal's IPNreferrer is not PayPal related

I have created a page:

http://mypage.com/paypal

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

http://mypage.com/paypal

I want to allow that to only when a user is redirected from paypal url. e.g. if it contains http://paypal.comor https://paypal.com then it's ok, but all other access redirect to WP homepage.

How to do that?

Don't allow access from user to the page but only from PayPal's IPN

I have created a page:

http://mypage.com/paypal

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

http://mypage.com/paypal

I want to allow that to only when a user is redirected from paypal url.

How to do that?

Redirect user if the referrer is not PayPal related

I have created a page:

http://mypage.com/paypal

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

http://mypage.com/paypal

I want to allow that to only when a user is redirected from paypal url. e.g. if it contains http://paypal.comor https://paypal.com then it's ok, but all other access redirect to WP homepage.

How to do that?

Source Link
Derfder
  • 2.1k
  • 12
  • 34
  • 57

Don't allow access from user to the page but only from PayPal's IPN

I have created a page:

http://mypage.com/paypal

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

http://mypage.com/paypal

I want to allow that to only when a user is redirected from paypal url.

How to do that?