IIS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationIIS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 9th, 2008, 08:39 PM
mameha1977 mameha1977 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 4 mameha1977 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 18 m 19 sec
Reputation Power: 0
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?

Reply With Quote
  #2  
Old June 9th, 2008, 10:32 PM
PWD's Avatar
PWD PWD is offline
Network Engineer
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2004
Location: 127.0.0.1
Posts: 709 PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level)PWD User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 23 h 45 m 56 sec
Reputation Power: 190
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationIIS > Limit access to localhost


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT