Im interested in keeping the search engines away from my family sites,
I use these 3 meta things at the moment,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Whatever</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="robots" content="noindex,nofollow,noarchive">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<style type="text/css">
Seems to work fairly well, but people here suggest to use the robots.txt to keep them away from the entire sites.
So if I wanted to keep them away from jcarter.net and jcdouglass.net, which are both mine,
Where in the code would I put this,
User-agent: *
Disallow: /
Thanks in advance,
Jane
You do not put those lines in your meta tags or anywhere else in your HTML. You put those lines in a robots.txt file.
A robots.txt file is just a text file. You make it with any text editor, like TextEdit,
Create a brand-new text file. In the text file, put the lines
Save the file as "robots.txt". Its name must be exactly that; all lower case. It is
not rich text. A rich text file WILL NOT work. (In TextEdit, you use the "Make PLain Text" command from the Format menu to make a file be a plain text file.)
Upload it to the top level of your Web site and you're done. There is nothing else you need to do. No changes to any other files and no modification to any of your HTML.
Using keywords in your meta tags won't make any difference one way or the other; search engines no longer look at keywords in meta tags.