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