meta index follow

meta index follow

Just came across meta tag which guides crawlers about whether to crawl the page and links contained in it or not.

Meta Index Follow Example

<meta name="robots" content="index, follow">

Above tag tells crawlers to crawl current page and links contained in it.

Here is Asp.net code behind file to add meta inside a page header

We are using HtmlGenericControl to generate meta tag. Meta tag control is provided in asp.net 4.0 and above versions. Using HtmlGenericControl you can create any custom tag for html.

HtmlGenericControl metaGoogleCrowler = new HtmlGenericControl("Meta");
  metaGoogleCrowler.Attributes.Add("name", "robots");
  metaGoogleCrowler.Attributes.Add("content", "index, follow");
  Page.Header.Controls.Add(metaGoogleCrowler);
  

Meta index nofollow example

<meta name="robots" content="index, nofollow" />

Above tag tells crawlers to crawl current page and don’t crawl the links contained in it.

Meta noindex follow example

<meta name="robots" content="noindex, follow" />

Above tag tells crawler to not crawl or index the current page but crawl the links contained in it.

Meta noindex nofollow
<meta name="robots" content="noindex, nofollow" />

Above tag tells crawler not to crawl index or not to follow content links in it.

Tags:

Aspnet Listbox Selectedindexchanged problems and solutionIndex was outside the bounds of the arrayOne dimensional array example C#.net VB.netHow To Declare and access array of string in C#Asp.net Create Html ControlsC# Do While Loop ExamplePassword HackC# Char ArrayJQuery how to change background imageGridview select emailRemove internet explorer

Author

My name is Satalaj, but people call me Sat. Here is my homepage: . I live in Pune, PN and work as a Software Engineer. I'm former MVP in ASP.net year 2010.
Disclaimer: Views or opinion expressed here are my personal research and it has nothing to do with my employer. You are free to use the code, ideas/hints in your projects. However, you should not copy and paste my original content to other web sites. Feel free to copy or extend the code.
If you want to fight with me, this website is not for you.
 

I'm Satalaj.