Restrict access to web site by IP address. Based on stackflow answer provided by sabbour IPList class source code taken from codeproject article I have added the constructor to the FilterIPAttribute which takes 4 parameters Added the Filter to GlobalFilter