homepage Welcome to WebmasterWorld Guest from 54.166.62.226
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Equivalent of .htaccess file in IIS?
BassKahuna



 
Msg#: 4211615 posted 12:43 pm on Oct 5, 2010 (gmt 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.

Thanks!

 

lammert

WebmasterWorld Senior Member lammert us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4211615 posted 1:29 pm on Oct 5, 2010 (gmt 0)

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].

BassKahuna



 
Msg#: 4211615 posted 1:41 pm on Oct 5, 2010 (gmt 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...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved