Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Allow/Deny access based on IP address/Domain Name

Status
Not open for further replies.

cathiec

Programmer
Oct 21, 2003
139
IE
hi all,

i have a website built using .net 2 with a sql server 2000 backend.

I am hosting this site with a hosting company and i had planned on using .htaccess file to allow or deny people the ability to login using their ip address or domain name. But now the hosting company are telling me that i can use the .htaccess file in a windows hosting situation. They did suggest using the .htprotect file but all this will do is put a password on the site. I need some way of determining where the user is logging on from and to then decide if they should be able to see the website or not based on their ip address or domain name.

Would appreciate any ideas on this.

Thanks.
 
Do you have some kind of control panel like CPanel or Plesk available to you (actually, do these work with Windows servers?!)?

These often have facilities like you describe.

However, the best bet is to tell your hosting company what you wish to do and ask for their suggestions.

<honk>*:O)</honk>
Foamcow Heavy Industries - Web site design in Cheltenham and Gloucester
Ham and Jam - British & Commonwealth forces mod for Half Life 2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top