one second

Lucene.Net search introduction

If you build web applications or services sooner or later you want to build some kind of search. Not that SQL full text search that takes minutes for a moderate set of records. What you want is a precise real time search. There are a lot of solutions but one specific that will cross your path again and again. I'am talking about Lucene of course.I started with Lucene for .Net some time ago and what I noticed (and what did not changed) is that there is not much documentation and examples for Lucen ...


Read More

Removing response headers in ASP.NET MVC and Web API

The standard ASP.Net MVC stack is very verbose when it comes to framework and server versions.Security should not only rely on obscurity. However, we don't want to expose more information that neccessary to potential attackers and framework and server version are one of the most valueable information you could expose.So how we can fix this?The MVC framework gives us the opportunity to intercept request and responses on certain stages of processingIn the web config add the following elementsThe f ...


Read More

ASP.NET Web API and CORS

If you ever tried to build a RESTful api with ASP.Net and consume that API from a web page that is not hosted on the same origin (domain, port, protocol) sooner or later your Browser might have complained about your origin is not allowed to acces the page. This is due to the the same-origin policy ...


Read More

WHOIS in C#

A WHOIS implementation in C#. Note that you need to query the correct server for a corresponding top level domain (i.e whois.verisign-grs.com for .com and .net domains). A list with WHOIS servers can be found here.


Read More