Blog Update and a Few Other Things

by Chris Thursday, February 04 2010

It's been quite a while since we last posted a new blog entry, but I assure you, we are not going away. We've had a lot of big things going on within AB Web Design, and we will address them soon.

Another thing you may (or may not) have noticed, is that we recently upgraded out blogengine.net version to 1.6.0.0. This is the latest stable version, and you can get it for yourself at dotnetblogengine.net. It's a great blog platform.

We've also added the "AddThis" button to the bottom left of every post -- for all of your social media and bookmark sharing needs! :P

Look for more action on here soon!

Cheers!

Chris

Tags: , , ,

Blog Maintenance | General

Blocking (Blacklisting) IP Addresses of Comment Spammers in ASP.net

by Chris Friday, July 31 2009

Comment spam is a major annoyance for many blog sites, especially blogs that are "dofollow."

Recently, we have been getting lots of attempted spam comments from places in India and Vietnam. I dug a little deeper, and it appears that these comments all originated from the same two IP addresses.

And us much as I hate to do this, in the interest of reducing comment moderation time, we are now taking up the practice of IP blacklisting.

If this is something you are interested in exploring as an option for your ASP.net blog, I suggest starting with a great article by Mads Kristensen, entitled "Block IP addresses from your website".


Tags: , ,

ASP.net | General

How To Use The ReTweet BlogEngine.net Twitter Extension To Track Short URLs With bit.ly and Google Analytics

by Chris Sunday, July 26 2009

If you are using the ReTweet on your BlogEngine.net site, then you may be interested in this.

I recently made another post on our blog regarding an update to the code that allows the use of special characters in the title through URL encoding. You can see that original post here.

This is a second code update that allows one to track the short URL via Google Analytics.


Assuming that you have already installed the Google Analytics tracking code on your site, you can track short URLs by updating the following code of the retweet.cs file.


Line 93: string address = "http://api.bit.ly/shorten?version=2.0.1&longUrl=" + url + System.Web.HttpUtility.UrlEncode("?utm_source=twitter&utm_medium=social-media&utm_term=&utm_content=from-twitter-account&utm_campaign=test-campaign") + "&login=" + bitlyUserName + "&apiKey=" + bitlyApiKey + "&history=" + activateHistory;

 

The emboldened part of the code above is the trick. It URL encodes the necessary tracking parameters in order to prevent from interfering with the bit.ly API. Of course you can change the underlined variables to reflect whatever you want to show up in Google Analytics.


This is super useful for tracking activity through Twitter.

For more information on building tracking URLs for use with Google Analytics, check out their URL Builder.


Tags: , , , , ,

ASP.net | Google

About this Blog

This is a blog about web design and all things that are related to web design. Pertinent and relevant comments and/or questions are highly encouraged, but please be courteous and thoughtful of others whilest making comments.

If you have benefited from a post, please do the right thing and promote it. You can do this by linking to it, tweeting it, or digging it.

Thank you much.

Recent Comments

Comment RSS