Created
January 28, 2013 02:22
-
-
Save QB/4652405 to your computer and use it in GitHub Desktop.
Ruby で、アクセスしてきたIEユーザをYahoo!へと弾き飛ばす。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "Location: http://yahoo.co.jp\n" if request.env["HTTP_USER_AGENT"].match(/MSIE/) | |
# ここまででIEは弾かれる。以下、通常の処理を書く。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment