WhiteSites Blog

asp.net http module for project honey pot http IP blacklist

Mar 31, 2008 by Paul White

Project Honey Pot
If there is one things that developers agree on, its that hackers, and spammers should be hunted down, and Killed, ( I mean brought to justice ).  The guys over at Project Honey Pot are leading the fight against spam.  They have setup a HTTP Blacklist that developers can use to validate their visitors IP.  The only problem is writing some code to utilize it might be a little advanced for some.  I have created an HTTP Module for ASP.NET that will validated your visitors before they get into your site.  I even commented my code ( something I usually don't do ), so others can learn.  Give it a try and let me know what you think. 

9504 Visitors

How to stop Real Player from downloading your videos with ASP.NET

Mar 11, 2008 by Paul White

Coming soon!!  Even though you can never block computer savy people from downloading your videos. The latest Real Player makes it so easy that even a computer handicaped person could download videos from your members sites.  After some hacking I figured out how to bock Real Player from stealing your videos.  All I am going to say is it involves an Http Handler, and an ISAPI entry to manage your .MPG extensions.  I should have a full write up on how to do this within a few days.

4930 Visitors

Stop Hackers and Spam Bots in IIS

Mar 1, 2008 by Paul White

If you get a ton of server errors in your event logs in IIS. You might be under attack from hackers and spam bots attempting to inject comments and links in your submit forms.  The notorious Viewstate Failed Error seems to be the result of their attempts.  I have found an awesome resource to take care of this, and block these rejects for good. 

9407 Visitors

How to find Slow MySQL queries and Optimize your Tables

Feb 12, 2008 by Paul White

After you see good growth in your site for months, suddenly things start to get slow.  If your site is driven by a MySQL database, this is most likely the problem.  Bandwidth, Transfer, or even your home internet connection is not the problem.  The problem is you have some slow queries driving your site.  When I say slow we are talking computer terms.  Slow could be a fast as 15 ms.  One slow query isn't the problem its when you get hundreds of slow queries  made by hundreds of users at the same time that it becomes a problem.  MySQL is very powerful but only if you create the right indexes.  I recently applied these techniques on one of my websites.  Here is the step by step guide ( by me ) on how to optimize your MySQL tables. If your ASP.NET site is dragging this can make it 10 times faster.

4152 Visitors

Time for blog 2.0

Feb 2, 2008 by Paul White

The SEO world was rocked in January when google changed the way it runs SERPS. They are basically cracking down on how people load keywords into their titles, and pages to increase their rank. I was going to recode my blog engine anyway to make it more efficient. Thanks to google my blog 2.0 engine is now a priority on my todo list.
2134 Visitors