|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Limit access to localhost
I have a win2003 server running some apps in the 'default web site'
I have just installed PHP on the 'default web site' and I want to use it to run some admin jobs. BUT I do not want the PHP scripts to be accessible over the internet, they should only run from local machine. Is it possible to set it up so that the files can be executed only by localhost? |
|
#2
|
||||
|
||||
|
1) Right click your 'Default Website' and select 'Properties'
2) Click the 'Directory Security' tab 3) In the middle, under 'IP address and Domain name restrictions' click 'Edit' 4) Clcik the radio button 'Denied Access'. This will make the defult rule for this site to deny access EXECPT for the IP addres(s)/subnet(s) you specify in the next step) 5) Under 'Except the Following' click 'Add'. In the window, select 'single computer' and enter the ip address: 127.0.0.1 (the loopback IP address of the machine) or the IP address of the workstation you are working from (if you want to access this from your workstation and you are using DHCP, you'll have to either assign yourself a static LAN IP adress not in your DHCP scope, or create a reservation within DHCP so DHCP gives your workstation the same IP every time). 6) Click 'OK' all the way back out and restart IIS. This will make your site ONLY accessible to you being logged into that machine (or whatever IP address you entered). If you want your subnet to only access, you would select 'specific subnet' in #5 above and enter your network's subnet(s). PS: Do the other apps need to be accessible on that site? If so, you'll want to create a new website and run these admin apps under their own site and lock down using the method above...
__________________
PWD MCSE, MCSA, MCP, Security+ NEW Windows Administration Forum Admin Source ![]() Could REALLY, REALLY, REALLY use you and your issues! Last edited by PWD : June 9th, 2008 at 10:35 PM. |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Limit access to localhost |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|