开发者

How can I determine if Facebook is hitting my page?

Does anyone know how to check in ASP.NET (C#) if Facebook is scraping a page? I'd like to be开发者_C百科 able to check on the server side if the "browser" hitting the page is actually Facebook (e.g. when it grabs details when a user is attempting to share a link).


Check whether Request.UserAgent contains Facebook.


Look at the referrer .... http://en.wikipedia.org/wiki/HTTP_referrer

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜