Tagged "C Sharp"


Block AI Crawlers in ASP.NET Core

How To Block AI Crawlers Like GPTBot and ClaudeBot in ASP.NET Core and IIS

Stop GPTBot, ClaudeBot, PerplexityBot, CCBot and other AI crawlers with robots.txt, ASP.NET Core middleware, or an IIS rule, without blocking Google or Bing.


Monero Payments With monero-wallet-rpc in C#

Accept Monero Payments Yourself With monero-wallet-rpc and C#

Self-hosted Monero (XMR) payments in ASP.NET Core with a view-only wallet, monero-wallet-rpc, one subaddress per order, and a payment-watching background job.


Monero Payments with NOWPayments in C#

Accepting Monero Payments with the NOWPayments API in C#

C# guide to the NOWPayments API: create a Monero (XMR) invoice, redirect to invoice_url, and verify x-nowpayments-sig IPN callbacks with HMAC-SHA512.


Custom Caching Tag ASP.NET

ASP.NET Core: On-Demand Cache Expiration with Custom Tag Helpers

Discover how to craft a custom cache tag helper in ASP.NET Core. Seamlessly merge Razor view caching with on-demand expiration for optimal backend performance.

Tagged: ASP.NET, C Sharp

Ignoring Bots by User Agent in C#

How To Ignore Bot Traffic by User Agent in ASP.NET with C#

Exclude crawlers and bots from logs and analytics in ASP.NET Core by matching user agents against the crawler-user-agents list with one compiled regex.

Tagged: ASP.NET, bots, C Sharp, spam

OpenAI API in C#

Using the OpenAI API in C#: Chat Completions and Responses API

Call the OpenAI API from C# with the official OpenAI NuGet package: Chat Completions, the newer Responses API, streaming, ASP.NET Core DI, and plain HttpClient.

Tagged: AI, C Sharp, ChatGPT

Spam Filtering With C#

Blog Comment Spam Filtering With C#

How to filter spam comment posts using an API and C# in ASP.NET.

Tagged: APIs, ASP.NET, C Sharp, spam

Sending Email With MailChimp

Sending Email With the Mailchimp API in C#

How to send email with the Mailchimp API in C#: one-off emails with Mailchimp Transactional, campaigns with the Marketing API, and contact sync. Working code.

Tagged: C Sharp, Email, MailChimp

AWS Step Functions in C#

AWS Step Functions With C#

Details on what AWS Step Functions are and how they can be used in .NET.

Tagged: AWS, C Sharp

Prevent Sign Out ASP.NET Core 2.0 Deployment

How To Prevent Sign Out After ASP.NET Core 2.0 Deployment

Example code of how to stay signed in after an ASP.NET Core 2.0 deployment to IIS.