Click here to Skip to main content
15,913,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I am working on web application(Website) and want some advice on security level to be applied on it.
These are some of the thing that need to be done:
1.Who can logged in the system when he is not on the LAN
2.Who can logged in when is when is on LAN
3.Who can logged in, in both cases (on LAN and not on LAN)

If you got other nice advice, links, or tutos, in the away that I can better secure the web application, please advice me.
Posted

1 solution

This type of security is rather complex, but I do understand the need for it.

Basically, you need to look at the originating IP address for the request. There are IP address ranges that are routable and non-routable. All routable addresses are internet or WAN based addresses. All non-routable addresses are LAN based addresses. You need to look at the IP range of the request and determine where the request is coming from (WAN or LAN). You then need to look up if the user is allowed to enter from the WAN or LAN and apply the correct course of action.

Here is the catch, this only works for IPv4. I haven't studied enough on IPv6 to figure out how to attempt this. You may need to consider doing things at the physical networking layer to achieve this.

The other option is comes into running multiple websites. You could have your WAN traffic go to one web site and your LAN traffic go to another web site. Each web server could maintain their own authorized users so you can apply security accordingly.

While I do understand the need for this, my suggestion is to seriously rethink your security model and decide if you really need such complex security.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900