Jump to content

Check if a website links to mine


themistral

Recommended Posts

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!  :D

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/199970-check-if-a-website-links-to-mine/
Share on other sites

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!

 

 

Archived

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

×
×
  • Create New...

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.