Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Previous Webpage PHP function

Tags:

php

I'm not sure if this is possible or not. I want to get the webpage url the user came from to reach a page on my website. Is there a function that can find that info out for me?

like image 779
thank_you Avatar asked Sep 30 '26 12:09

thank_you


1 Answers

$_SERVER['HTTP_REFERER'] will give you that value, but it could be faked or disabled by the client.

like image 52
Lusitanian Avatar answered Oct 02 '26 03:10

Lusitanian