Sonny Black
Sonny Black

Reputation: 1617

IP authentication in rails

I'd like to know if this is possible? I have a client who would like to add a seperate login with IP authentication, however from my understanding most service providers don't generate static IP's for it's users.

How would this work?

Thanks

Upvotes: 0

Views: 133

Answers (1)

Andrey Deineko
Andrey Deineko

Reputation: 52377

Check if request.remote_ip is within those addresses matching your requirements.

Upvotes: 1

Related Questions