Is there a way to ensure a user is still linking to my websi
Moderator: General Moderators
Is there a way to ensure a user is still linking to my websi
I am working on a link exchange section on my site. The user can gain special access on my site for as long as they link to my website from theirs. Is there a way to create a php or java script that automatically checks if they are still linking to my website? Any ideas on how I could do this?
Re: Is there a way to ensure a user is still linking to my w
Setup a cron job to retrieve the particular page (e.g. with file_get_contents) and see if it contains the link.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Re: Is there a way to ensure a user is still linking to my w
Right, file_get_contents() or cURL (to more closely resemble a real user request) along with preg_match() for your particular link code.Apollo wrote:Setup a cron job to retrieve the particular page (e.g. with file_get_contents) and see if it contains the link.
However, it is worth noting just because your link appears in the html source, does not neccesarily mean it will be visible to the user. I.e., hidden elements.