Jump to content

Archived

This topic is now archived and is closed to further replies.

Csani

How to check the linking website

Recommended Posts

Hi Y'all!

Is it possible to check the linking website's address with PHP? For example, if there's a link to my website on another page, can PHP find out where the link is, i.e. where the "hit" is coming from?

Thank you for your attention!

Csani

Share this post


Link to post
Share on other sites
Yeah. You can use $_SERVER['HTTP_REFERER'] to find out what page that linked to it.

(I bet it wont take very long before somebody come and tell that it can be spoofed)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.