Lock web app only work for intranet

霸气de小男生 提交于 2019-12-03 09:01:38

Set up your apache configuration so that only the internal network is allowed to access the billing system using mod_authz_host.

<Directory /billing-system/docroot>
Order Deny,Allow
Deny from all
Allow from *internal ip range*
</Directory>

Refer to http://httpd.apache.org/docs/2.1/mod/mod_authz_host.html#allow for more information.

Just deploy a WAMP (or LAMP) server with your application on a server inside the company firewall on their network.

Users then access your application via the servername. e.g. if the machine name is "Elmo", then users just access your app with:

http://elmo/index.php

(this is presuming a single app running on the server on the default port 80)

The trick here, is that if this machine is not connected to the Internet, and you need to update it from outside, you'll need to have some other access e.g. SFTP

  1. If the intranet is not connected to the internet, you can verify that by pinging a well-known site, such as your domain or google.com, and refusing to operate if it answers. But such intranets are becoming rare. Maybe it would be easier to restrict max number of users (total or concurrent) - verifying that an application is not accessible from outside can be difficult.

  2. Less attempts to hack the application (behind company firewall) - that's the pro and a con, because then you may be tempted to pay less attention to security considerations because "well, it's an internal app!"

  3. No fundamental difference. In large organizations, usually some form of single sign-on is used and you will have to integrate that; also, server configuration and software may be restricted by IT.

  4. XAMPP can be run from a pen drive, so if you can boot Windows from there and instruct it to run XAMPP this should be possible.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!