Library code snippets
I, Robot
Robot is a generic term for those sometimes helpful, sometimes pesky,
programs that index Web pages across the Internet to feed the
databases of search engines and other indexing sites. They're also
sometimes known as spiders, crawlers, or bots. And while it's often a
good thing that they crawl through your Web site, gathering the
information to help other Netizens find you on the Web, there may be
certain pages you don't want visiting robots to access at all. Most
major robots respect a file called robots.txt, which you can place in
the root of your Web site. This file gives instructions to robots about
which pages or directories they're allowed to index. The file format
is self-explanatory, so let's look at an example:
# Robots must obey the following:
This robots.txt illustrates the possible scenarios of disallowing
User-agent: * # The wildcard means ALL robots
Disallow: /test.asp # Do not index this particular page
Disallow: /administrative # This directory is off-limits!
Disallow: /jaf/test.asp # Don't index this page, but the rest
# of the directory is OK
entire directories as well as individual files. The pound sign (#)
introduces a UNIX-style comment. Be aware that not all robots will
honor this file, particularly the spiders on small or personal sites,
but this approach will allow you to protect your pages and directories
against major exposure.
Related articles
Related discussion
-
how to select multiple files at a time using Ctrl+select and upload the attachments in C# .Net 1.0?
by vasanta (0 replies)
-
Header and Footer in Web page print
by fhajaj (4 replies)
-
help me to get simple requirement
by Slicksim (1 replies)
-
Gridview -> Template Field -> Button
by antti.simonen (1 replies)
-
Classic ASP : Page expires
by chezhian_in05 (0 replies)
Related podcasts
-
ASP.NET Caching and Performance
Steve Smith, owner of ASP Alliance and Lake Quincy Media joins us today to teach us about some hidden gems in ASP.NET caching and performance. Steve’s expertise in this area comes from first-hand experience as Lake Quincy’s ad system serves over 60 requests per second and handles over 150 million...
Related jobs
-
Microsoft .Net Architect
in AMSTERDAM (€50K-€90K per annum) -
Microsoft Dynamics CRM Technical Consultant
in Netherlands (€50K-€90K per annum) -
Technical Support Engineer EMEA
in Reading (£50K-£50K per annum) -
Solutions Engineer
in Reading (£50K-£60K per annum)
This thread is for discussions of I, Robot.