Use the $_SERVER['HTTP_REFERER']
header, but bear in mind anybody can spoof it at anytime regardless of whether they clicked on a link.
More Related Contents:
- http_build_query with same name parameters
- Get url as www.abcd.com?curr=USD
- How do I send to the current page? [closed]
- Recommendations for processing incoming data on a web server [closed]
- How to create friendly URL in php?
- What is the size limit of a post request?
- How can I select and upload multiple files with HTML and PHP, using HTTP POST?
- How to use HTTP cache headers with PHP
- How to disable output buffering in PHP
- best way to determine if a URL is an image in PHP
- Extract URL from string
- Redirect to page and send custom HTTP headers
- setcookie, Cannot modify header information – headers already sent [duplicate]
- How to include Authorization header in cURL POST HTTP Request in PHP?
- Using PHP Replace SPACES in URLS with %20
- PATCH and PUT Request Does not Working with form-data
- nginx redirect loop, remove index.php from url
- encodeURI() in PHP?
- How to get final URL after following HTTP redirections in pure PHP?
- Get current URL path with query string in PHP [duplicate]
- How to pass a PHP variable using the URL
- How to make HTTP requests in PHP and not wait on the response
- Get “Content-Type” header of request in PHP
- WAMP – Remove localhost from project URL
- Detecting whether a user is behind a proxy
- PHP regex for validating a URL
- How to properly create HTML links in PHP?
- Find out HTTP method in PHP [duplicate]
- How can I get the destination URL using cURL?
- How do I apply URL normalization rules in PHP?