开发者

Determining if a specific url is present on an external website

How can I go about seeing if a particular website has a specific link in its content? We have a situation where someone is not necessarily stealing our copyrighted content, but they are posting parts of it and linking to another site as the author and we're wanting to track each time they do this.

Basically what I need is something that will go to www.site_of_thieves.com/specific_page.php and search for www.seco开发者_运维技巧nd_site.com and report back on the number of matches found.

Any help would be appreciated.


$theivesSiteContent = file_get_contents("www.site_of_thieves.com/specific_page.php");

preg_match_all('/www.second_site.com/g', $theivesSiteContent, $matches);

print_r($matches);


$cl> curl site.com | grep "the link"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜