Is there any way that I can find out what site linked to my site? I want to get the URL and store it in a DB. But, I dont want anything past the .com. so if (for example) someone got to my site by clicking on an ad on eBay, and the referring URL was http://www.ebay.com/categories/books/calculus.php I would only want "http://www.ebay.com". Is this possible?
Thanx,
Josh
get a referring URL
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
parse_url(). Be aware that looking for a referrer in a request is very unreliable as it's extremely easy to fake and there are routers that strip that information from a request..