After you've been coding for a few months, one of the more important lessons you learn is how to avoid SQL-injection attacks. Generally, this is…
Subdomain XMLHttpRequest – Origin is not allowed
If you've tried using AJAX via your browsers XMLHttpRequest object to access data from another domain, you are greeted with an error similar to XMLHttpRequest…
Keeping on top of website errors
One of my favorite books depicts a southern farmer who boasts how his animals do all the work (maintaining the grass by eating it, etc,…
Strong form SPAM prevention technique
To emphasize the necessity for some form of SPAM prevention, consider this example. You have an HTML form, such as: <form action="send.cfm" method="GET"> <input…
MVC security issue
Using the model-view-controller approach is a great way to organize your code and keep logic separate from presentation, but depending on the framework you use,…