|
||||||
Welcome to the personal Web site of . I'm just getting started with my site. Here's what I have so far: SteelWhite Theme for Nokia E61/E62 Smartphones
IIS 6 ISAPI Filter for Sub-Domain Redirection to a folder
This ISAPI Filter allows you to support sub-domains in an IIS without defining a new whole new site. You just add the sub-domain to the site as a host header (e.g. mysub.mysite.com) and create a corresponding sub-directory under site's doc. root (/mysub). And the filter will turn requests to "mysub.mysite.com" into "mysite.com/mysub". To install, just add the DLL as an ISAPI filter for a particular site in IIS. You even don't need to make it an "Allowed Server Extension" in my experience. IIS 6 ISAPI Filter for Hotlink Protection (image linking)
I created this ISAPI Filter to block hotlinking on sites that didn't need the power (and overhead) of running one of the several rewrite engines available for IIS. Also at the time I wrote this, the free rewrite engines couldn't do what I needed anyway. This filter will check all files requested from the Web server. If the file is an image (ends in .gif, .jpg, .jpeg or .png) and the referrer does not match the server name, the request will be redirected to "/hotlink_error.gif".
|
||||||
| Copyright 2007 Grand River Hosting | ||||||