[Rails] Re: Identify internet/intranet connection
Klaus Fuchs wrote in post #1027695:
> Is it possible to identify if someone is connecting my rails app through
> the internet or an intranet?
> I would like to enable web access only to a couple of users, others
> should be able to login only when inside their intranet.
Check the request object. Something in there should give you what you
need:
http://api.rubyonrails.org/classes/ActionDispatch/Request.html
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home