before authentication

  • Thread starter Thread starter Johannes
  • Start date Start date
J

Johannes

Hello,

I have a site with a part that can only be accessed by users who are
logged in. I am displaying google ads there.

The problem is whenever the bot (Mediapartners-Google/2.1) tries to
access the page it is redirected to the login page. To optimize for
content related ads I like the bot to be redirected to the
topic-explanaion-page that is not protected.

My thought is to catch the request in global.asax and redirect the
googlebot to the relevant page with a server.transfer().

In wich event should I catch the bot. I think
Application_AuthenticateRequest:is to late, do I have to do it in
BeginRequest or is ther a better way?

Thanks.
 
Anywhere that you can gain access to the Request.UserAgent property, you can
do what you want.
Peter
 
Back
Top