How to create a Robots.txt file in ASP.NET Core

SEO tips for ASP.NET programmers

A robots.txt file tells the crawlers where they are allowed to scrape the website. You can tell the search engines which links you don’t want to index. You can indicate where a sitemap is located. A robot’s text file is not mandatory, but it’s recommended because you make crawling easier for robots. For example, maybe your sitemap is located elsewhere … Read more

How to get back the old Console Project in .NET 6

Visual Studio Console Project

Since .NET 6, Microsoft has changed the template for the console project. From now on, the console template will use top-level statements. Using new features like global usings and file-scoped namespaces, .NET allows you to write the code statements directly without boilerplate code. Most programmers hate this new project style that removes the Main method and the default using statements. … Read more

Best C# courses on Pluralsight

Best C# Courses on Pluralsight

C# is one of the most popular programming languages. Every day thousands of students start to learn it. One way to learn the basics of C# is to watch video courses on platforms like YouTube, Linkedin Learning, Coursera, Khan Academy, or Pluralsight. Pluralsight is a video course platform that is more focused on programming, especially from the Microsoft world. Here … Read more

C# Web Scraping and Automation

C# Scraping and Web Automation

I think every programmer tries to automate some of their tasks. Once, one of my colleagues created an app that checked the cinema website in order to book a ticket to a Star Wars movie. In C# the are many ways to scrape a website or automate a flow on a website. Here is a list of possible options: Selenium … Read more

Add Captcha in your ASP.NET Core Website

Add Captcha in ASP.NET Core

Nowadays, if you have a publicly available form, you must have a captcha to stop bots from posting spammy data. Add your site to the reCaptcha console ReCaptcha is the most popular captcha service on the Internet. It’s offered for free by Google. You must create an account and add your site to the admin console. When you add your … Read more