get reffered php code example Example: php get refferal // To get what website the user came from: $_SERVER['HTTP_REFERER']