Some way to detect crawlers in Wisej?

0
0

Hi!

Some way to detect crawlers / bot / spiders in Wisej?

I want to log it after detect it

Maybe this in program.cs?
var ua = Application.UserAgent;
System.Web.HttpRequest req = System.Web.HttpContext.Current.Request;
var cw = req.Browser.Crawler;

but maybe a good idea that could be Application.Crawler -> that returns true false and Application.CrawlerName too

Thanks in advance!

  • You must to post comments
0
0

I mean that i want detect some crawlers like google search engine crawler or others search engines, I want to know when last visit for indexing or ranking my page

  • You must to post comments
0
0

It’s not a Wisej feature, it’s part of the web server layer. You can use any IIS filters or Apache/NGINX rules for that. This could be useful https://sublimecoding.com/blocking-bots-in-iis/.

 

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.