Santry Technology Solutions, Content Management, DotNetNuke, SharePoint Consulting
Register | Login
Friday, November 21, 2008

Sections
  
About Us
  
Partners
Downloads
  
 WWWCoder.com Resource Directory

Check for a Spider and Redirect
9/19/2004 9:26:29 PM

Code snip will check for a spider bot or crawler and redirect the bot to another content page.


Dim Spidercheck
Spidercheck = Request.ServerVariables("HTTP_USER_AGENT")
If (Instr(LCase(Spidercheck), "bot") <> 0) OR (Instr(LCase(Spidercheck), "crawler") <> 0) Then
Response.Redirect "/main/Default.aspx"
Else
'user redirect to another page.
End If


Page Options:
format for printing  Format for Printer
email article  Email Page
add to your favorites   Add to Favorites
How would you rate the quality of this content?
Poor - - Excellent
Comments?
Overall Rating:
Comments Left:
Left on 5/11/2007 4:03:27 AM by Anonymous
Comments:
  

 Latest Articles
  

 Latest News
  

 

Spotlight
Syndication

 


 


Digg This
 


DotNetNuke Platinum Benefactor

  
 

 Terms Of Use | Privacy Statement
 Copyright 2008 - Santry Technology Solutions, Box 172, Girard, PA 16417, (814) 774-0970