Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: License Code and Inline Images Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
joestephens
Newbie
Newbie


Joined: 25 July 2003
Location: United States
Online Status: Offline
Posts: 2
Posted: 25 July 2003 at 5:05pm | IP Logged Quote joestephens

I am very new with the type of filter.  In installed it, then added the filter to the website in IIS console.

I take it that the below code to block inline images is supposed to redirect the request with a "referrer" to 404.asp.

[ISAPI_Rewrite]

# Defend your computer from some worm attacks
RewriteRule .*(?:global.asa|default\.ida|root\.exe|\.\.).* . [F,I,O]
# Block Inline Images
RewriteCond  Referer: .+
RewriteCond  Referer: (?!http://(www\.)?archw\.com).*
RewriteRule  .*\.(gif|jpg|wmv|rm)  /404.asp [I,L]

It doesn't work. I don't understand the second "RewriteCond" statment :

RewriteCond  Referer: (?!http://(www\.)?archw\.com).*

Does this allow referrals from that particular website?  I want to redirect inline image requests of all sites but *.archw.com.

 

Also, I can't figure out the file to do registration (enter my license code).

 

Thanks for your help!

 

 

 

Back to Top View joestephens's Profile Search for other posts by joestephens Visit joestephens's Homepage
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6470
Posted: 26 July 2003 at 1:54am | IP Logged Quote Yaroslav

Remove filter from the IIS console. It is done automatically during install.

To enter license code use ISAPI_Rewrite Configuration Utility from the start menu.



__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 
joestephens
Newbie
Newbie


Joined: 25 July 2003
Location: United States
Online Status: Offline
Posts: 2
Posted: 26 July 2003 at 11:25am | IP Logged Quote joestephens

I removed it from the IIS Console for the particular website.  How does the filter know what website to affect, does it know because the httpd.ini is the the root of the web?

 

Only 3 objects are in my start menu:  httpd.ini, Documentation, and Regular Expressions test utility.

 

Should I re-install?

Back to Top View joestephens's Profile Search for other posts by joestephens Visit joestephens's Homepage
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6470
Posted: 27 July 2003 at 4:03am | IP Logged Quote Yaroslav

IR> I removed it from the IIS Console for the particular website.  How
IR> does the filter know what website to affect, does it know because the
IR> httpd.ini is the the root of the web?

Yes.

IR> Only 3 objects are in my start menu:  httpd.ini, Documentation, and
IR> Regular Expressions test utility.

You are using Lite version. Install Full version if you wish to use site-level configurations.



__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top View Yaroslav's Profile Search for other posts by Yaroslav Visit Yaroslav's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum