Do not show Meta Tags to regular visitors, but show robots

This is a trick. As a script it has no value.

The basic idea is that your visitors will not normally check your META TAGS, so it is useless to send them that information. But META TAGS can not be removed forever as they are important for robots. How may we avoid sending that information to our visitors without removing it? The solution will be to discern between robots and visitors.

We do not know how to identify all robots, but we can obtain information on the browser visitors are using, and this is want we have done in the script shown in the table.

<% 
Userbrowser=request.servervariables("HTTP_USER_AGENT")
if instr(Userbrowser,"MSIE ")>0 then 
%>
<!-- metatags.txt //-->
<% else %>
<meta name="keywords" content="keyword1,keyword2,keyword13,keyword4,keyword5,keyword6,keyword7,
keyword8">
<meta name="description" content="The best of all sites in the word is described here">
<% end if %>

The browser of the visitors can be obtained with this code:

     request.servervariables("HTTP_USER_AGENT")

For example: your browser is Mozilla/4.0 (compatible; MSIE 6.0b; Windows 98).

As most of browsers used at the moment are different versions of Microsoft Internet Explorer (over 90 % in this site; they all will return within the code obtained with the code above the substring "MSIE"), in the script above we have decided to display an alternative information to those browsers:
 
     <!-- see /metatags.txt //-->

A visitor who wants to see our meta tags will need to visit the corresponding file. Meanwhile, the rest of visitors have saved time, and our  server has had less work (in our main page we have stop transmitting over 10 MB per day this way).

As robots are not using Microsoft Internet Explorer they will get all the information included in meta tags. Additional browsers (but MSIE) will also show meta tags.



Google






   



MSN Nick Name



More Resources...





Most Viewed Services:
  1. HTML Tutorial
  2. XHTML Tutorial
  3. CSS Tutorial
  4. Javascript Tutorial
  5. DHTML Tutorial
  6. VB Script
  7. TCP/IP Tutorial
  8. ADO Tutorial
  9. MYSQL Tutorial
  10. ASP Tutorial
  11. AJAX Tutorial
  12. CFML Tutorial
  13. PHP Tutorial
  14. WML Tutorial
  15. FLASH Tutorial
  16. XML Tutorial
  17. RSS Tutorial
  18. SQL Tutorial
  19. HTML Articles
  1. Javascript Articles
  2. PHP Articles
  3. SEO Articles
  4. Web Design Articles
  5. SEO Tips
  6. Web Design Tips
  7. Articles
  8. CSS
  9. CSS Tips
  10. HTML Tips
  11. JAVASCRIPT Tips
  12. MYSQL Tips
  13. PHP Tips
  14. Money
  15. Tutorials
  16. Web Hosting



  • Home
  • Web Directory
  • Top Directoriers
  • Webmaster Directories
  • Contact
  • © Copyright 2006-2010 All Rights Reserved By CodeDcode.Com : HTML : RSS : TEXT : XML