- Three weeks of hard work and I'm finally moving out of this hole. >>
- RT @ChrisPirillo: Is it just me, or is Twitter Suggestions virtually useless? It's showing me "famous" people I've done my best to ignor ... >>
- Fantastic uygur restaurant near Shinjuku http://yfrog.com/m97dqj >>
- Forget the mouse and god damn trackpad, I want a magic trackball!!! >>
- RT @mamachari: Clash of cultures or mere insensitivity? English teacher gets in hot water for playing hangman in Jpn school http://bit.l ... >>
So I need to create the ability for a user to submit a form – and I would like to enable some sort of primitive security system. To that end, I need to work out a way to check IP addresses. All this while in PERL (it’s pretty damn simple in PHP and Ruby on Rails). Let’s see what I can find (hopefully..)
-edit-
Well that wasn’t so bad.
render_text request.env['REMOTE_HOST'].to_s
-edit-
So it turns out that this doesn’t always work. There is a better way to do so; try this.
render_text request.remote_ip().to_s





