themistral Posted April 27, 2010 Share Posted April 27, 2010 Hi guys, Following on from checking that the websites listed on my websites return a header status of 200, I would like to know if anyone can help me with a script to find out if each website links back to me. I guess it must be possible as some directories give preference to people who reciprocal link over those that don't. I don't have an image on the third party sites, so ideally would just want to look for a link in the source code. I have no idea if what I'm asking is even possible, but any nudges in the right direction would help! Thanks! Quote Link to comment Share on other sites More sharing options...
leehanken Posted April 27, 2010 Share Posted April 27, 2010 I think you would use Curl functions to retrieve the web page, and a regular expression to search for links. Quote Link to comment Share on other sites More sharing options...
themistral Posted April 27, 2010 Author Share Posted April 27, 2010 Thanks for the direction! I used a CURL script to check the third party site status so I guess that makes sense! Thanks, I will see what I can find! Quote Link to comment Share on other sites More sharing options...
teamatomic Posted April 27, 2010 Share Posted April 27, 2010 http://www.phpfreaks.com/forums/index.php/topic,295790.msg1400908.html#msg1400908 HTH Teamatomic Quote Link to comment Share on other sites More sharing options...
themistral Posted May 1, 2010 Author Share Posted May 1, 2010 Hi guys, I've tried both scripts and the cURL one seems to work where the other one doesn't. I think the cURL script is only checking the homepage - which makes sense as I guess that is the page I am parsing to it. However, I need to be able to check an entire site as I don't know where the links will be. Is this something I can do... Maybe I could capture all the links from the homepage and run the process on each of those pages... Yep, gonna try that. Yes it will take a long time, but it will be a process I run once every 6 months or so. If anyone has any thoughts on how to do it better, please let me know! Quote Link to comment Share on other sites More sharing options...
themistral Posted May 1, 2010 Author Share Posted May 1, 2010 Yep - that has worked!! Thanks for help guys! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.