skip to main
|
skip to sidebar
Jorrel's Online Notepad
Monday, January 28, 2008
Detecting the googlebot
Detecting the googlebot as your site's visitor is easy by just checking user agent. Googlebot uses this user agent:
Googlebot/2.1 (+http://www.googlebot.com/bot.html)
And in the app, we can just check:
request.user_agent =~ /googlebot/i
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Jorrel Ang
View my complete profile
Blog Archive
►
2009
(1)
►
January
(1)
Git: restoring accidentaly deleted files
▼
2008
(13)
►
December
(1)
custom assert_select_rjs matcher
►
November
(1)
Application Controller
►
October
(4)
reverse_sql_order
"Only get, head, post, put, and delete requests ar...
Using custom column type in Rails migrations
Obi-Wan vs Yoda
►
September
(1)
Rubyforge gem problem
►
June
(1)
Undo uncommitted changes in git
►
April
(3)
Ubuntu Hardy + Firefox + Firebug
mod_rails + edge rails
mod_rails + rails 2.0
▼
January
(2)
Detecting the googlebot
Planned Music Purchases
►
2007
(8)
►
December
(2)
Windows + ext2/ext3 access
Copying files using rsync
►
November
(1)
Monaco for Ubuntu
►
October
(5)
HTTP basic authentication
Autotest and libNotify
Ubuntu Gutsy!
in_words
to_stopwatch
del.icio.us Bookmarks
Loading...
Blogroll
Jeffrey Ching's Blog
getchee
8 months ago
The Avid Mind
A Simple Way to Generate formatted PDF Documents
1 year ago
Followers
0 comments:
Post a Comment