List Info

Thread: how to prevent session creation for search engines




how to prevent session creation for search engines
user name
2006-12-08 18:11:36
The main problem is, we are using the built in session
provider which
stores its sessions into a database.

I don't want to 'block' the search engines, but I don't want
to create
a session record for each page request they are doing.

I believe I could use Request.Browser.Crawler to determine
if the
request is done by a search engine. But I fail to see how to
inform
the session provider to not create any session for that
particular
request.

Thanks,
// Ryan

On 12/8/06, Adam Tuliper <amtgecko-software.com>
wrote:
> Check user agent string - there are defined user agents
for most search
> agents
> See http://www.useragents
tring.com/
> http://w
ww.pgts.com.au/pgtsj/pgtsj0208q.html (many others out
there as well)
> This is also a trick that can be used to view content
you don't have a
> session for..
> Ie change your user agent string in firefox (ie doesn't
allow you - only to
> append to it unless you are using an http debugging
proxy) and then view a
> previously indexed but protected page..
> So be sure to handle that technique as well.
>
> -----Original Message-----
> From: Discussion of building .NET applications targeted
for the Web
> [mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Ryan Heath
> Sent: Friday, December 08, 2006 2:31 AM
> To: DOTNET-WEBDISCUSS.DEVELOP.COM
> Subject: [DOTNET-WEB] how to prevent session creation
for search engines
>
> Hi,
>
> Does anyone know how we can prevent session creations
for search
> engines on an asp.net 2.0 website?
> We use cookie based session, which obviously fails for
search engines ...
>
> Thanks,
> // Ryan
>
> ===================================
> This list is hosted by DevelopMentorR  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com

>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com

>

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

how to prevent session creation for search engines
user name
2006-12-08 18:38:38
Off the top of my head.. prob use an httpmodule and make
sure it's in the
asp.net processing pipeline before the provider so you can
handle it ahead
of time.
Unless any of the interfaces for the provider give you that
functionality.



-----Original Message-----
From: Discussion of building .NET applications targeted for
the Web
[mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Ryan Heath
Sent: Friday, December 08, 2006 10:12 AM
To: DOTNET-WEBDISCUSS.DEVELOP.COM
Subject: Re: [DOTNET-WEB] how to prevent session creation
for search engines

The main problem is, we are using the built in session
provider which
stores its sessions into a database.

I don't want to 'block' the search engines, but I don't want
to create
a session record for each page request they are doing.

I believe I could use Request.Browser.Crawler to determine
if the
request is done by a search engine. But I fail to see how to
inform
the session provider to not create any session for that
particular
request.

Thanks,
// Ryan

On 12/8/06, Adam Tuliper <amtgecko-software.com>
wrote:
> Check user agent string - there are defined user agents
for most search
> agents
> See http://www.useragents
tring.com/
> http://w
ww.pgts.com.au/pgtsj/pgtsj0208q.html (many others out
there as
well)
> This is also a trick that can be used to view content
you don't have a
> session for..
> Ie change your user agent string in firefox (ie doesn't
allow you - only
to
> append to it unless you are using an http debugging
proxy) and then view a
> previously indexed but protected page..
> So be sure to handle that technique as well.
>
> -----Original Message-----
> From: Discussion of building .NET applications targeted
for the Web
> [mailtoOTNET-WE
BDISCUSS.DEVELOP.COM] On Behalf Of Ryan Heath
> Sent: Friday, December 08, 2006 2:31 AM
> To: DOTNET-WEBDISCUSS.DEVELOP.COM
> Subject: [DOTNET-WEB] how to prevent session creation
for search engines
>
> Hi,
>
> Does anyone know how we can prevent session creations
for search
> engines on an asp.net 2.0 website?
> We use cookie based session, which obviously fails for
search engines ...
>
> Thanks,
> // Ryan
>
> ===================================
> This list is hosted by DevelopMentorR  http://www.develop.com
>
> View archives and manage your subscription(s) at
http://discuss.develop.com

>
> ===================================
> This list is hosted by DevelopMentor(r)  http://www.develop.com
>
> View archives and manage your subscription(s) at
http://discuss.develop.com

>

===================================
This list is hosted by DevelopMentorR  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com


===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

how to prevent session creation for search engines
user name
2006-12-08 19:10:58
> I don't want to 'block' the search engines, but I don't
want to create
> a session record for each page request they are doing.

I'm not sure you can prevent the creation, but you can
certainly clean
them up... just do a Session.Abandon at EndRequest.

--
"I am Dyslexic of Borg. Resistors are fertile. Prepare
to have your
ass laminated." -- Dan Nitschke

Marc C. Brooks
http://musingmarc.blog
spot.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )