Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Equivalent of .htaccess file in IIS?

12:43 pm on Oct 5, 2010 (gmt 0)

New User

5+ Year Member

joined:Sept 15, 2010
votes: 0

System: The following message was cut out of thread at: http://www.webmasterworld.com/website_technology/4173202.htm [webmasterworld.com] by lammert - 3:18 pm on Oct 5, 2010 (cet +2)

Is there something similar to the .htaccess file for servers running Microsoft IIS? The .htaccess is for Apache.

1:29 pm on Oct 5, 2010 (gmt 0)

Senior Member from KZ 

WebmasterWorld Senior Member lammert is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 10, 2005
posts: 2932
votes: 20

Hi BassKahuna, first of all Welcome to WebmasterWorld!

Apache and IIS are differently organized. In Apache all settings are controlled via the httpd.conf and .htaccess files. In IIS part of the settings are controlled by the operating system.

If you want to apply rewrite rules to URLs, the most Apache-compatible solution is to use ISAPI Rewrite. Authentication which is also controlled by the .htaccess file in Apache is controlled in ASP by the web config file. More information about that can be found here [msdn.microsoft.com].
1:41 pm on Oct 5, 2010 (gmt 0)

New User

5+ Year Member

joined:Sept 15, 2010
votes: 0

Hi lammert,

Thanks for the info... we're an electrical distributor / wholesaler based in the midwest, and are not currently or looking at any time in the future to accept orders or customers outside of the U.S.A. So I'm looking for a way to simply block the IP's of all other countries to prevent the RFQ's we keep getting in to our sales folks from international customers. I've been blocking out individual IP's from certain countries when I find them crawling our site and ignoring our robots.txt file, but was looking for a simpler, more elegant solution than having to enter all these IP address in to IIS one at a time.

Our site UI is Java / Javascript that interfaces with our search engine and OMS in the background via XML, so we're looking at having a file that contains all of the IP address we want to block and then having a script check them, but the "blockacountry" .htaccess list was so fast and easy I was hoping there might be something out there similar for IIS...

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members