1 tool and 10 posts tagged with “ASP.NET”

Redirect non-www urls to www urls
August 12, 2017 · 2 min read

When considering SEO, either you have to stick with www versioned url or non-www URLs. Having both accessible for a domain is a bad practice.

Check if string is Arabic - C#
September 06, 2017 · 2 min read

In one simple line of code, we can check whether the given string is Arabic or not, in C#.

Redirect WWW to Non-WWW using Web.Config in IIS
September 19, 2017 · 1 min read

Use IIS rewrite rule to redirect (301) all www requests to non-www.

Redirect HTTP to HTTPS using Web.Config in IIS
September 25, 2017 · 1 min read

Use IIS Rewrite rule to redirect all HTTP request to HTTPS.

Redirect HTTPS requests to HTTP using IIS Rewrite rule in Web.Config
September 28, 2017 · 1 min read

Use the provided rewrite rule to redirect HTTPS requests to HTTP.

IP Security - Configure IP address restrictions in Web.Config on IIS
January 09, 2018 · 1 min read

Restrict access to your website using IIS IP security

Enable Click-Jacking Protection - Umbraco
April 07, 2018 · 2 min read

If your site is allowed to be IFRAMEd by another site and thus would be susceptible to click-jacking. This can be prevented by setting X-Frame-Options header or CSP. Setting X-Frame-Options explained in this article.

.NET Interview Questions and Answers
April 12, 2018 · 14 min read

Here I am listing some of the interview questions I have faced when applied for .NET developer/Software engineer roles.

IIS - OPTIONS Requests Returns 404
April 19, 2018 · 2 min read

If OPTIONS preflight request getting 404 and URLScan enabled on your hosting machine, check out this article.

C# - Get Web.Config Connection String in a Class Library
September 15, 2019 · 2 min read

If you can, pass the connection string as a parameter to the class library. Second option is System.Configuration.ConfigurationManager