Forum Moderators: phranque

Message Too Old, No Replies

Stop hotlinking on IIS

         

digicam

12:08 pm on Nov 10, 2005 (gmt 0)



Hi, I saw a post on preventing hotlinking on Apache web servers, but how do you prevent it if using MS IIS - on a shared account?

any thoughts

cheers

Staffa

4:28 pm on Nov 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Check if your host has installed or is willing to install Isapi_Rewrite on the server (or a similar program).

digicam

5:46 pm on Nov 10, 2005 (gmt 0)



Ok, I can check that - what would I need to do then?

Staffa

10:20 pm on Nov 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You will then have a similar file as htaccess available in your root directory where you can write rules to stop bad bots, hotlinking, etc.

However, you cannot copy htaccess rules because the syntax is somewhat different.

digicam

10:28 pm on Nov 10, 2005 (gmt 0)



Problem I am on a shared server so I amagine that banning IPs would be impossible.

Staffa

8:44 am on Nov 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you mean by "shared server" the way most of us have a site hosted where we get a slice of the server space for our site, than it still works.

The program is installed on 'the server' and each site gets the use of it individually. Each site has its own httpd.ini file (similar to htaccess) with its own rules so you can ban an IP number or an IP range of numbers just to your site.