How to Block Specific IP Addresses in IIS 10 for Good

If you need to block an IP address, you can do that directly in IIS 10 with the Web IP Security feature. You can install it with this PowerShell command (run it as administrator):

After a reboot of your server, you should see the Icon “IP Address and Domain Restrictions” on the home screen …

Read more

ASP.NET Core Identity: Use IEmailSender without SendGrid

ASP.NET Core Identity offers you a little interface called IEmailSender to wire up your own logic to send emails for account confirmation and password recovery. The official tutorial at Microsoft uses SendGrid for those emails. While this service has certainly its place, we do not want to change our email infrastructure just because we only …

Read more

Recreate the Self-Signed HTTPS Certificate for Localhost in IIS Express

As explained in my earlier post, Visual Studio creates a self-signed certificate for your web application that allows you to access your site over HTTPS. If you accidentally remove this certificate, your web application will fail to load and report something like ERR_CONNECTION_RESET on the default error page of your browser: With caching and no …

Read more