I'm trying to prevent access to pages on my website like password reset link and reset password etc if the user did not first go to a certain page. That is if page initial referrer of page X is not page Y then prevent access with something like abort(404).
How can I get the initial referrer url of a request and check it against a url in laravel 5
I've tried the below but it's not working;
$referer = Request::header('referer');
if ($referer != "http://ift.tt/1O7juJq") {
return redirect()->route('/');
}
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1OI4Gqk
via IFTTT
Aucun commentaire:
Enregistrer un commentaire