Re: Getting a visitors ip address in your web app

2010-11-08 Thread joshmckin
Anything new with this? I have an app which is complete behind SSL (hostname SSL) and we have to implement IP logging. Do we need to change/upgrade our ssl service ? On Oct 5, 1:26 pm, marcel wrote: > Or just > > request.env.ip > > http://rack.rubyforge.org/doc/classes/Rack/Request.src/M000288.ht

Re: Getting a visitors ip address in your web app

2010-10-05 Thread marcel
Or just request.env.ip http://rack.rubyforge.org/doc/classes/Rack/Request.src/M000288.html On Oct 2, 11:55 am, Peter van Hardenberg wrote: > I use this in my code -- I run my apps at foo.heroku.com with whatever > the ghetto SSL option is, so YMMV. > > def remote_ip >       if forwarded = reque

Re: Getting a visitors ip address in your web app

2010-10-04 Thread Peter van Hardenberg
I use this in my code -- I run my apps at foo.heroku.com with whatever the ghetto SSL option is, so YMMV. def remote_ip if forwarded = request.env["HTTP_X_FORWARDED_FOR"] forwarded.split(",").first elsif addr = request.env["REMOTE_ADDR"] addr end end -pvh On Oct

Re: Getting a visitors ip address in your web app

2010-10-01 Thread Kelly Heikkila
My assumptions on using hostname SSL: 1. You can't collect IPs for the subdomain you are tying your SSL to using hostname SSL (for reasons outlined below) 2. You can collect IPs for the parts of your app that are non-SSL if you use a different subdomain/root. Example: secure.myapp.com for SS

Re: Getting a visitors ip address in your web app

2010-10-01 Thread Paul Cortens
I am looking at the following headers in my Heroku apps. Not all of them get set. All of them can be faked (as far as I know). request.env['HTTP_CLIENT_IP'] request.remote_ip request.env['HTTP_X_FORWARDED_FOR'] request.env['REMOTE_ADDR'] Paul On Sep 28, 2:45 am, Josh K wrote: > Hi Guys, > > We

Re: Getting a visitors ip address in your web app

2010-09-29 Thread chris
Still is a problem if you're using the "Hostname Based Custom SSL" -- in order to get the users IP address, you'll have to use "IP Based Custom SSL" and pay $80 more per month :( On Sep 29, 1:44 pm, Keenan Brock wrote: > This used to be a problem with ssl. > Don't think it has been resolved > > -

Re: Getting a visitors ip address in your web app

2010-09-29 Thread Keenan Brock
This used to be a problem with ssl. Don't think it has been resolved --Keenan On Sep 29, 2010, at 1:38 PM, Aaron Brethorst wrote: > I haven't tried this with Heroku, but with another app I had hosted on EC2 I > was able to use request.env['HTTP_X_FORWARDED_FOR'] to get this. > > On Sep 28, 201

Re: Getting a visitors ip address in your web app

2010-09-29 Thread Aaron Brethorst
I haven't tried this with Heroku, but with another app I had hosted on EC2 I was able to use request.env['HTTP_X_FORWARDED_FOR'] to get this. On Sep 28, 2010, at 2:45 AM, Josh K wrote: > Hi Guys, > > We have a web app deployed on Heroku which requires ip address logging > of each request, but w

Getting a visitors ip address in your web app

2010-09-29 Thread Josh K
Hi Guys, We have a web app deployed on Heroku which requires ip address logging of each request, but we noticed that the ip address is always a 10.*.*.* address (local) instead of a valid address from the interwebs. After reading a little into this I found out that this may be due Amazon LBS and t