I've just started using MVC5 and I want to make my website available just for a specific IP address, so I check the client IP address using the following:
Request.UserHostAddress;
I have two users to access to my website and every one have to access from specific IP address, so I need your help to know how to do this note that I use the default user authentication from MVC.
Every single support word is appreciated.
Related
I installed OpenLDAP on my ubuntu server, and realized that the address book is in the public domain without a password. That is, anyone who knows the values ou=,dc=,dc= can connect it and get the data of all employees (email addresses, phones, etc.)
A task
Make an entrance to the address book with some kind of authentication (for example, by password). Employees use such mail clients as: Mozilla Thunderbird, BAT!, Outlook.
Setting up a firewall and restricting access by ip addresses does not suit, because employees must connect to it from any ip addresses.
Are there any options to protect and hide access to the address book of employees?
P.S. I heard that there is some kind of authentication in Kerberos, but I am not familiar with this and I could not find information on this either.
Thank you in advance.
Does Firebase log the IP address that the user last signed in from?
The reason that I need it is that I want to try to broadly segment my users by location, and IP address will usually help with this.
But I'm not sure if the data exists in Firebase or is query-able.
Nope. Firebase Authentication does not make the IP address of the user available. See Firebase JavaScript SDK - Retrieve Users IP Address
But what you describe sounds like a use-case better suited to Firebase Analytics/Google Analytics for Firebase, which does expose the user's location (based on a lookup from their IP address).
I'm new to user authentication and related digital security issues, so I would like to know if the way I'm doing things is ok. Currently the way my server "remembers" users is based solely on the IP address they have logged in from. If they check the remember me option, I store that IP in the database and from then on, every time that machine enters the website, I check if that IP is associated with one of my users. If so, I log them in.
What is good or bad on that approach?
I write a chat application in nodejs with a socket.io library, the problem is in the administration of users, is it better to write an administrative logic based on clients ip adress or based on an id-s from the database?
I would appreciate any help.
is it better to write an administrative logic based on clients ip
Most users will connect from a dynamic IP addresses so the IP address they use will most likely change.
You would need some method to authenticate users and identify administrators, normally using some user database.
Question
Using React for our Shopify-like service. basically the same functionality.
Where i am stuck is how do i Make user able to connect their domain to our websites specific domain or subdomain.
eg.
User owned domain
uniquedomain.com
Service domain
user.myservice.com
from shopify
shopify allows user to add their domain to their shop. how does this work?
conclusion
If user wants to add their domain to our specific url,
what tech should i be adopting for this feature?
currently using React, react-subdomain
react subdomain
https://github.com/bmullan91/express-subdomain
This can be done using CNAME records or giving your users the IP address of your server to add in there DNS records.
How shopify does this -
Shopify gives the IP addresses of there load balancer to the users who wants to connect to their domain to the shopify shop.
The end user (domain owner) need to point there domain to the given Ip address, and you will have to have the virtual host setup at your end to recognise each domain.