I need to exclude any error about it, so I ask it here. I have being asked by a client to create a page that can be accessed via a link on his website but that cannot be accessed (or at least would be redirected to another place) manually by copying the link or typing it into the browser address bar.
The only thing that came in mind to me was using a cookie on the website and then check if the user browser has stored this cookie when the critical page opens. So that another user not coming from the base website will see something different or be redirect via javascript etc. (i.g. using the cookie for an if {…
).
Let me know if I oversaw a possibility or if it is simply: “There is no way to do that.” Thanks!
EDIT
@marmeladze: Sorry I am not familiar with the require techniques. So I cannot take this way I fear. And I am not able to say if it works = correct answer.
@mplungjan: Wow! Didn’t know about this seemingly very simple referrer thing! I think this is the way to go like in the accepted answer here: Checking the referrer Cool! Sadly, my link though is a direct download link of a PDF so neither of the solutions will work because I probably (I am wrong maybe?) will not be able to put code in it.