Disabling Smart Tags under Apache

Disabling Smart Tags under Apache 1.2 and later

From Red Hat Apache Guru Mark Cox, via Drew Meeks at Red Hat:
Header add MSSmartTagsPreventParsing "TRUE"
to httpd.conf should add the response header to every page served.

Mark and Drew haven't tested this, but I pass it along. You can test the efficacy of this approach at, which returns both

MSSmartTagsPreventParsing: TRUE
X-Meta-MSSmartTagsPreventParsing: TRUE

as response headers, the latter since X-Meta-Foo in the response headers is interpreted by some browsers as equivalent to a <META name="Foo"> tag. returns the same content without the above headers.

Requires that modheaders is installed on your copy of Apache: See http://httpd.apache.org/docs/mod/modheaders.html. You can alter the scope of this by placing the "Header" directive inside a VirtualHost, Directory, Location, or Files directive.

I grabbed the whole thing incase the refered site disapears in the future.

About this Entry

This page contains a single entry by fozbaca published on June 27, 2001 1:51 PM.

Finally got stats working on was the previous entry in this blog.

MS Office 2004 screenshot. [via is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Monthly Archives


Powered by Movable Type 5.2.2