Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I have an Action method in a controller as below:

C#
[Authorize]
public ActionResult ToDo()
{
  //Do some stuff
  return View();
}


I would like to allow facebook crawler either by its user agent name or IP range to access the content of ToDo Action method even without logging in. How is that possible? your thoughts.

What I have tried:

Haven't tried so far as I am very new with web crawling and MVC.
Posted
Updated 4-Mar-17 14:12pm

1 solution

Think of search engine spiders (including Facebook's) as a friendly guest user. They can only see what you allow a guest user to see.

This Google search link will point to pages that give you tools to have a search engine spider point-of-view... view page as a search engine spider[^]


Here are some additional Asp.Net SEO tips: Search Engine Friendly (SEO) Tips for ASP.Net Sites[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900