I have a private web page that one can visit if the user in logged in. I can, of course, check if the session is set or simply if the user is logged in. If yes, let the page execute and show the output. If not, take the user to the login page.
But how can exclude request from a specific external domain to this private page. In other words, How can I make this private page as a public page to the user if that user is coming from this one specific external domain?
Is there any way I can find out where the request is coming from or what IP etc? So i can exclude the condition if the user is logged in.
Any suggestions?