Let’s take a moment and chat. No secrets or technique, Well veiwing what search engine see is a cool thing isn’t it?
The search engines index your website by using their crawlers or spiders. Search engine spiders are not really crawling spiders but little software bots do nothing but visits the URLs and check your links and follow them. Once the page are crawled and recorded it begins page indexing until your site appear on search engine like google, yahoo and msn.
$UserAgent = $_SERVER['HTTP_USER_AGENT'];
echo "Your User-Agent is: $UserAgent";
<% @ Language=VBScript %>
<% UserAgent = Request.ServerVariables("HTTP_USER_AGENT") %>
Your User-Agent is: <%=UserAgent%>
Since we already know how to determine user-agent, let’s do user-agent sniffing! Sounds interesting ?
The term user-agent sniffing refers to websites that show different content when viewed with a certain user agent. On the Internet, this will result in a different site being shown when browsing the page with a specific browser.
Once you installed the user-agent switcher, please add the following user-agent for the big 3 search engines:
User Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
App Name: Googlebot
App Version: 5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
User Agent: Mozilla/5.0 (compatible; Yahoo! Slurp;http://help.yahoo.com/help/us/ysearch/slurp)
App Name: Yahoo
App Version: 5.0 (compatible; Yahoo! Slurp;http://help.yahoo.com/help/us/ysearch/slurp)
User Agent: msnbot/1.0 (+http://search.msn.com/msnbot.htm)
App Name: MSNBot
App Version: 1.0 (+http://search.msn.com/msnbot.htm)
Once you are finished adding the 3 user-agent please view the demo page, visit Behold the search engine eyes! .
Focus on the bold text! Try to view it with or without user-agent
Search engine cloaking is a great way of hiding the source code that’s enable you to rank high on the search engines because when your competition visits they’ll be sent to the regular page and not the page that’s giving you those good rankings. Search engine cloaking is also used in web designing but it is consider as poor practice in Web 2.0 web sites, since it encourages browser specific design.