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
精彩评论