I've searched the web & can't find an answer to this.
Is it possible to successfully use Response.AddHea der for a robots meta tag?
For example, I want to do
<%
IF request("PageID ") = 252 THEN Response.AddHea der "robots", "noindex"
:
%> 8 8735
"Tony" <To*****@yahoo. comwrote in message
news:Og******** ******@TK2MSFTN GP03.phx.gbl...
I've searched the web & can't find an answer to this.
Is it possible to successfully use Response.AddHea der for a robots meta
tag?
For example, I want to do
<%
IF request("PageID ") = 252 THEN Response.AddHea der "robots", "noindex"
:
%>
It looks like you're confusing response headers with the HTML "head"
section; the two are entirely unrelated.
The response header is the data block sent back to the browser by the web
server which passes things like the result code, cookies, etc., and which
you never get to see (unless you're doing "raw" browsing with something like
SamSpade or Lynx).
The HTML "head" section is actually simply a part of the HTML stream, which
the server pays no attention to as a separate entity from the "body" or any
other part of the stream. It's this location that you'll need to add your
"robots" directive to, as a meta tag (you'll find plenty of references to
the "robots" meta tag using Google).
- Bob.
"Bob Milutinovic" wrote:
The response header is the data block sent back to the browser by
the web server which passes things like the result code, cookies,
etc., and which you never get to see (unless you're doing "raw"
browsing with something like SamSpade or Lynx).
On a side note, you can add a [Headers] tab to the [Page Info] window in
Firefox, by adding the "Live HTTP Headers" extension: https://addons.mozilla.org/en-US/firefox/addon/3829
In addition, you can use the extension to capture a log of all[1]
request/response headers, and use its "replay" feature to tweak your request
headers before re-submitting a request (this includes all headers and even
POST body content).
[1] You can filter out immaterial request info, such as image and css
requests
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
"Bob Milutinovic" wrote...
>
"Tony" wrote ...
I've searched the web & can't find an answer to this.
Is it possible to successfully use Response.AddHea der for a robots meta
tag?
For example, I want to do
<%
IF request("PageID ") = 252 THEN Response.AddHea der "robots", "noindex"
:
%>
It looks like you're confusing response headers with the HTML "head"
section; the two are entirely unrelated.
No, I'm afraid that you are confused.
What you are discussing is correctly called the HTTP Headers, not the "response
headers".
>
The response header is the data block sent back to the browser by the web
server which passes things like the result code, cookies, etc., and which
you never get to see (unless you're doing "raw" browsing with something like
SamSpade or Lynx).
The HTML "head" section is actually simply a part of the HTML stream, which
the server pays no attention to as a separate entity from the "body" or any
other part of the stream. It's this location that you'll need to add your
"robots" directive to, as a meta tag (you'll find plenty of references to
the "robots" meta tag using Google).
Duh.
You can modify some HTTP meta response by adding comments within the <HEAD></HEAD>
section.
My original question, is do search bots bother to read the HTTP headers for a robots
name/content pair.
"Tony" wrote...
:You can modify some HTTP meta response by adding comments within the <HEAD></HEAD>
section.
Sorry spellcheck.
That should have read:
You can modify some HTTP meta response by adding CONTENT within the <HEAD></HEAD>
section.
"Tony" wrote:
My original question, is do search bots bother to read the
HTTP headers for a robots name/content pair.
You might just as well ask if they bother to read the META tag versions.
When we went through the process of selecting a search appliance for our
internal servers, several vendors confessed to us that they do not obey such
tags.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
"Tony" <To*****@yahoo. comwrote in message
news:ek******** ******@TK2MSFTN GP05.phx.gbl...
"Bob Milutinovic" wrote...
"Tony" wrote ...
I've searched the web & can't find an answer to this.
>
Is it possible to successfully use Response.AddHea der for a robots
meta
tag?
>
For example, I want to do
>
<%
IF request("PageID ") = 252 THEN Response.AddHea der "robots",
"noindex"
:
%>
It looks like you're confusing response headers with the HTML "head"
section; the two are entirely unrelated.
No, I'm afraid that you are confused.
What you are discussing is correctly called the HTTP Headers, not the
"response
headers".
The term HTTP Headers is general term to the set of headers defined in the
HTTP spec. Some HTTP Headers only have meaning as part of the Request phase
of a HTTP session, some only have meaning in the Response phase and a few
can be used both in the request and the response.
When refering to HTTP headers that are sent as part of the response we tend
to use the phrase 'Response Headers'. The Response.AddHea der is a method in
ASP we use to add such 'Response Headers'.
>
The response header is the data block sent back to the browser by the
web
server which passes things like the result code, cookies, etc., and
which
you never get to see (unless you're doing "raw" browsing with something
like
SamSpade or Lynx).
The HTML "head" section is actually simply a part of the HTML stream,
which
the server pays no attention to as a separate entity from the "body" or
any
other part of the stream. It's this location that you'll need to add
your
"robots" directive to, as a meta tag (you'll find plenty of references
to
the "robots" meta tag using Google).
Duh.
You can modify some HTTP meta response by adding comments within the
<HEAD></HEAD>
section.
My original question, is do search bots bother to read the HTTP headers
for a robots
name/content pair.
The actual header you are after is X-Robots-Tag :-
Response.AddHea der "X-Robots-Tag", "noindex"
--
Anthony Jones - MVP ASP/ASP.NET
"Anthony Jones" wrote...
:
My original question, is do search bots bother to read the HTTP headers for a robots
name/content pair.
The actual header you are after is X-Robots-Tag :-
Response.AddHea der "X-Robots-Tag", "noindex"
Ah HA!
And I found a wealth of new information when I searched for "X-Robots-Tag"
THANKS, Anthony!!!
Tony
Gazing into my crystal ball I observed "Tony" <To*****@yahoo. com>
writing in news:ek******** ******@TK2MSFTN GP05.phx.gbl:
My original question, is do search bots bother to read the HTTP
headers for a robots name/content pair.
The well behaving bots do honor noindex, nofollow within a Meta tag in the
Head element. Some, including Google, also honor rel="nofollow", good if
you want to have a link to an outside host, but do not want SE to follow
it. You will also, if you have not already done so, want make use of a
robots.txt file [ www.robotstxt.org/].
Understand that misbehaving bots will ignore all your efforts.
There are helpful people at alt.internet.se arch-engines that-a-way --->
--
Adrienne Boswell at Home
Arbpen Web Site Design Services http://www.cavalcade-of-coding.info
Please respond to the group so others can share This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Craig Haywood |
last post by:
Hi there,
Can anyone please give me an actual example in code on how to add a header
for the "HTTP/1.1 202 (Accepted)" response code
I have searched the web high and low and all I can find is example in the
format of:
response.addheader (custom header, value)
|
by: Joseph |
last post by:
Hello. I have this problem. See I have a transformed XML
file and I checked its contents prior to outputting it to
excel file via responseset. here is the gist of the code:
XmlReader reader = myEsiCommand.ExecuteXmlReader();
reader.MoveToContent();
string myCSV = reader.ReadInnerXml();
//Load the xml fragment into the document
XmlDocument xmlDataDoc = new XmlDocument();
|
by: S.Kartikeyan |
last post by:
I read previous posts in the group regarding
Response.AddHeader("content-disposition","filename:somefilename");
My aim is to send a file from aspx page with some file name.
when the page is opened in Internet Explorer it should display
the OpenFileDialog asking me to whether to open|save the file.
When i do it and access the page from internet explorer it shows the
DialogBox asking me whether to open or save the file .When i say open
|
by: Adam Beer |
last post by:
I have a visual basic app that contains a IE browser control and I am
using C#.NET to create dynamic content to be displayed within the IE
control. The app parses the URL for commands, but I've run into a
problem.
In my C# code, I attempt:
Response.Redirect("COMMAND_LOAD");
This should send the command to the VB app, however I am finding that
|
by: PD |
last post by:
I am trying to stream out a PDF file via the response object and when I
execute the code it always brings up the first document that I pulled
up.Even when I step through the code, I can see the new values in
theData string array (see code below), but it serves up the first
document that I had run this code with. I streamed theData into a text
file to look at the values and it contained the appropriate ones for
the new document. Even when I...
| |
by: Sridhar |
last post by:
Hi,
I am trying to display a pdf file on the web. It is working fine but the
Page_Load method is running twice before displaying the page. Here is the
code that I am using
Private Sub ReadPdfFile(ByVal strFilepath As String)
'Create WebClient Object
Dim objWebClient As New WebClient
'Create Byte Array to download data
|
by: john |
last post by:
The standard method to transmit a file from an aspx page to a browser
is to stream the file to the response then end the response. The HTML
code generated by the aspx page is discarded, and the browser displays
or offers to save the binary file instead.
I would like to have the browser accept and display the revised HTML
code as well as offering to open or save the attached file. This
SHOULD be possible using a multipart MIME format -...
|
by: Andyza |
last post by:
With reference to the ASPFAQ 2161 article -
http://classicasp.aspfaq.com/general/how-do-i-prompt-a-save-as-dialog-for-an-accepted-mime-type.html
Does the 'Content-Disposition' code work if the user is using
JAVASCRIPT as the SERVER SIDE scripting language, i.e.:
<%@LANGUAGE=JAVASCRIPT%>
If I add this header to a page that uses Javascript as the server-side
scripting language:
|
by: Michael D. Ober |
last post by:
When I single step through the code below, it sends back the PDF file that
is retrieved in the line fm.GetAccountPDF(...). When I run without single
stepping, I get the master page for this page. I have actually saved the
file returned by IE 7 as a text file and opened it in notepad, so I have
confirmed that it is indeed the page master being returned. The code is in
the code behind file for the aspx page and is called directly from a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |