Computer articles :: Cloaking Meta Tags :: Computer articles for websites
Google

Web Torroid

Free Sex and Sexuality Guide
Free Sex and Sexuality Guide
Free Web and Internet Directory
Free Web and Internet Directory
DNS Services
DNS Services
Office Humor Cartoon Poetry
Office Humor Cartoon Poetry
IT Support London
IT Support London
online casino gambling
online casino gambling

Car Loan
Loans
Mobile Phone
Mortgages
Personal Injury Attorney Los Angeles
Advertise here
Affiliates
Reviews
Help Youth
Defeating Stigma
structured settlement news

Cloaking Meta Tags

Next articles:

Ten Basic Steps for Building a Click-ready Web Site - 1) Assemble a web site development plan that is integrated with your overall marketing processes; the content should be consistent with offline materials...

Module mod_rewrite: Rewriting URLs With Query Strings - The Apache server's module mod_rewrite is typically used to rewrite one URL to turn it into another one...

The Wisenut Framejob - Freshly launched new Google contender Wisenut has met with a good deal of preliminary applause: to date, the media buzz has focused on their lean-and-mean, no-frills...

To WAP or Not to WAP - WAP: "Wireless Application Protocol (WAP) is an open, global specification that empowers mobile users with wireless devices to easily access and interact...

How to Protect Email Addresses in Textarea Fields From Harvesters and Spammers - Obfuscating web site email addresses by using Unicode is a nice and - at least currently - pretty efficient trick. Unfortunately, it won't work very well if you're...

by Ralph Tegtmeier

(rt) This short tutorial will cover the cloaking of web page meta tags, which follows a different procedure than the IP delivery and full page cloaking method commonly employed for high grade stealthing.

Server Requirements To take advantage of this procedure you must be able to make use of Server Side Includes (SSI) on your web server. Note IIS/4.0 users: The code presented here is an extended SSI expression which is not supported under IIS/4.0.

Meta tag cloaking is effected by excluding browsers from viewing certain parts of a web page, specifically the header where meta tags are positioned by default.

Browsers are determined by their UserAgent variable. Once properly cloaked, it won't make any difference whether you read the source code online or whether you download it for viewing offline – the meta tag code will remain hidden, the browser will not be able to read it and will therefore not download it either.

Browser UserAgents - Here is a list of UserAgents as used by popular web browsers:

- "Lynx": Lynx text browser - "Mozilla": Netscape browsers - "MSIE": Microsoft Internet Explorer - "NCSA Mosaic": Mosaic technology based browsers like Spry, Spyglass, etc. - "Opera": Opera browser - "WebTV" - WebTV's proprietary browser

Activating SSI - The .htaccess File

If your web server is not configured for SSI by default, you will need to upload a file named ".htaccess" (please note the period/dot at the beginning of the file name!) to your server directory. This can be done by Telnet or FTP.

The .htaccess file should have the following content:

- .htaccess entries below this line -

Options Includes +ExecCGI AddType text/x-server-parsed-html .html

- .htaccess entries above this line -

Note that many web servers will not require the specfication "Includes", meaning you can omit it altogether. However, since it won't do any harm to keep it in your file, we suggest you do not change the above entry. Thus, should you switch servers some day, you will not have to readjust your .htaccess file.

After you have uploaded the modified .htaccess file (MUST be in Ascii mode!), you're ready to go.

In the HEADER section of the web page whose meta tags you wish to protect, place the following code:

- First HEADER entry below this line -

<!-# if expr=""$HTTP_USER_AGENT" != /Mozilla|MSIE|Opera|Lynx|WebTV|NCSA Mosaic/" ->

- First HEADER entry above this line -

VERY IMPORTANT (1) = The above should actually be in one SINGLE line! As email clients tend to word wrap lines which are too long for display, we have done their job here for better readability. But make no mistakes: The code above MUST be free from line wraps, or it won't work!

Under this first header entry, you may now add the actual meta tags you wish to protect.

When you are done, you must close the protected section with the last header entry, or the rest of your page won't be displayed either!

- Last HEADER meta tags protection entry below this line -

<!-# endif ->

- Last HEADER meta tags protection entry above this line -

VERY IMPORTANT (2) = If you have other entries in your page header (e.g. for an external CSS style sheet, an external JavaScript applet, etc.) you MUST place these OUTSIDE the protected area (but WITHIN the header tags) or they will not work unless you are operating with a browser sporting a UserAgent not included in the code above.

So what does it do? The SSI code outlined above will determine the accessing browser by its UserAgent variable. If it is recognized, the system will skip the content within the exclusion tags, effectively preventing the meta tags from being displayed.

Search engine spiders not using common browser UserAgent variables (most don't) will still get to read the meta tags nevertheless, which is, of course, what you want them to do.

Limitations The method outlined above may well qualify for "poor man's cloaking" - it is NOT an industrial-strength protection against code snoops, the more so as UserAgents can easily be forged ("spoofed"), but it will cover about 95% of all ordinary browsers and their users without putting an undue strain on server load and, hence, system performance.

Bear in mind, too, that meta tags are gradually losing in importance as many search engines have stopped indexing them because of massive abuse by keyword spamming ("spamdexing") and irrelevant description tags in the past.

Other uses - This technique can also be used to prevent email harvester bots (address extractors) from culling email addresses from textarea fields, e.g. if you happen to display your ezine complete with editors' addresses in text format on your web site.

Further resources - Read more about protecting textarea fields from email harvesters here: < http://fantomaster.com/faarticles0.html#protect-email-addresses >

A more detailed discussion of this method, including some practial demonstrations, can be found on our web site at: < http://fantomaster.com/fasmbacntut01a.html >

Ralph Tegtmeier is the co-founder and principal of fantomaster.com Ltd. (UK) and fantomaster.com GmbH (Belgium), < http://fantomaster.com/ > a company specializing in webmasters software development, industrial-strength cloaking and search engine positioning services. He has been a web marketer since 1994 and is editor-in-chief of fantomNews, a free newsletter focusing on search engine optimization, available at: < http://fantomaster.com/fantomnews-sub.html > You can contact him at mailto:fneditor@fantomaster.com

(c) copyright 2001 by fantomaster.com All rights reserved. Downloaded at: < http://fantomaster.com/ >

Link to this article, just copy and paste following code:

<a href=http://www.torroid.com/article1229.html>Cloaking Meta Tags</a>

Article viewed 698 time(s). Read more:

1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 |

Copyright © Torroid.com, 2004, Sitemap of computer articles | Resources | Computer articles home";
Page loaded in 0.649 seconds

Computer Tips   Computing Guide   Computers