Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Rewrite on direct entry Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
carltoncl
Newbie
Newbie


Joined: 31 July 2009
Online Status: Offline
Posts: 3
Posted: 17 May 2010 at 4:39pm | IP Logged Quote carltoncl

We have a main website www.company.com that enables you to start an insurance quote and it then pushes the visitor to quote.company.com. However we want to prevent users from bookmarking pages during their journey through quote.company.com and we'd like to block ALL visits directly to the domain quote.company.com except there is one page that users can visit directly when they retrieve a quote via email, call it quote.company.com/retrievequote.aspx.

Right now I have the following rule in place but it's not working right. The idea was to look at the referer and if it is null or not company.com then push user to www.company.com.

#RewriteCond Referer: (!http://(?:www\.|quote\.)?company\.com).+
#RewriteRule /(!retrievequote.aspx) http\://www.company.com [I,RP]

We are using ISAPI Rewrite for ISA Server 2006.

Thanks,

 

Back to Top View carltoncl's Profile Search for other posts by carltoncl
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10489
Posted: 18 May 2010 at 3:53am | IP Logged Quote Anton

Please try to apply the following config:

RewriteCond Referer: (?!http://(?:www|quote)\.company\.com).+
RewriteRule /(?!retrievequote.aspx).* http\://www.company.com [I,RP]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

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