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: image antileech plus rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
TestShootCom
Newbie
Newbie


Joined: 02 November 2003
Location: United States
Online Status: Offline
Posts: 27
Posted: 02 November 2003 at 6:53pm | IP Logged Quote TestShootCom

I have a site www.TestShoot.com (hence the name) and another few sites I post my photos to frequently to advertise new models. Currently one of the girls I host is being leeched by blogs and other forums I do not want my images shown on, so I created a "NoLeech.gif" to replace the violators.

So how do I add muiltiple domains that have permission to use my images, and heres another kicker: I use an image gallery app that I will want to apply the rewrite to changing the proposed testshoot.com/gallery/model.asp?id=1pic=3 into testshoot.com/gallery/model.asp/1/3 or something similar.

As a newbie to the app I am asking now before I waste time and screw something up.

My thought:

RewriteCond  Referer: .+
RewriteCond  Referer: (?!http://(www\.)?testshoot\.com).*
RewriteRule  .*\.(gif|jpg)  /noleech.gif [I,L]
RewriteCond  Referer: .+
RewriteCond  Referer: (?!http://(www\.)?APPROVEDFORUM\.com).*
RewriteRule  .*\.(gif|jpg)  /noleech.gif [I,L]
RewriteRule (.*?\.asp)(\?[^/]*)?/([^/]*)/([^/]*)(.+?)? $1(?2$2&:\?)$3=$4?5$5: [N,I]



__________________
[::tSc::]
Test Shoot .com
[::tSc::]
Back to Top View TestShootCom's Profile Search for other posts by TestShootCom Visit TestShootCom's Homepage
 
Yaroslav
Moderator Group
Moderator Group


Joined: 15 August 2002
Online Status: Offline
Posts: 6466
Posted: 03 November 2003 at 10:11am | IP Logged Quote Yaroslav

Use this:

RewriteRule /gallery/model.asp/([^/]*)/(.*?)/? /gallery/model.asp\?id=$1pic=$2 [I]

RewriteCond Referer: (?!http://(www\.)?(testshoot\.com|APPROVEDFORUM\.com)).*
RewriteRule  .*\.(gif|jpg)  /noleech.gif [I,L]

RewriteCond Referer: (?!http://(www\.)?(testshoot\.com|APPROVEDFORUM\.com)).*
RewriteRule  /gallery/model.asp.*  /noleech.gif [I,L]



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


Joined: 02 November 2003
Location: United States
Online Status: Offline
Posts: 27
Posted: 03 November 2003 at 12:41pm | IP Logged Quote TestShootCom

Thanks, now I know a little more about the syntaxes, this is a tremendous help!

__________________
[::tSc::]
Test Shoot .com
[::tSc::]
Back to Top View TestShootCom's Profile Search for other posts by TestShootCom Visit TestShootCom'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