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. Thanks, Klaus
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