Top Security Tips for Working with MySQL

August 24th, 2010 | 1 Comment | Posted in Security, Web Design

Having your website connect to a database is pretty much like opening up the backend of your website and letting users manipulate the data. What this means is, whether you secure the connection and data being inputted or not, data is still being manipulated.

Many new developers tend to not secure and sanitize the data being inputted into their database, which opens up many security vulnerabilities to your database and its data. We cover five vital tips to keeping your database secure from user inputted data.

Front End Security

One of the major things you need to do in terms of front end, before the data is being stored into your database, is to perform some sanitization checks on the user input. For example, let us say you need the age and username of new registrants, the age is an integer, and the username is alphanumerical.

So instead of taking this data and sending it directly to your database, verify that the age is indeed an integer as well as the username is alphanumerical. This is basic step toward better security and it does prevent many security flaws.

Table Structure Data Types

Data types for fields are another major aspect that is sometimes missed. If only integers are being stored into a field, make that field’s data type an integer, of course depending on its length (int, bigint, etc). By doing this, it prevents any data that may cause damage to be filtered out, as all that can be inputted are integers as well as it increases performance.

Data Sanitizing

Despite front end and table structure security measures, the data being inputted to the database should be completely sanitized. If string data is being inputted, assure it is sanitized by escaping quotes, special characters, and the likes. Remember, if the data is not being sanitized on input, it can play with your query causing damage to your tables, data, and database.

Update MySQL Versions

One thing we usually tend to get lazy upon is staying up to date with the latest versions and patches. However, not doing so can cause negative and undesired affects if security holes have been breached. Now I am not saying to update to new feature releases frequently if undesired, but rather to security patches and releases as they do bring you one step forward to keeping secure.

Never Store User Inputted Data Directly

This has to be one of the most common mistakes made by many new developers in the industry. Instead of sanitizing or even checking the data by the least, they directly tie the grabbed data into a query and send it directly to the database or run the user provided data by a delete query or similar.

This is a security breach waiting to happen as your query can be indirectly or directly controlled right from the users’ fingertips. Instead, make sure you sanitize the information and perform multiple checks to assure it was what you want to be collecting and storing before you run it through a query.

Overall, there is a plethora of techniques to sanitize user input and to help secure your database from being vulnerable depending on the type of information that is being manipulated with. One of the best practices to use is to build a test environment and attempt to throw unintended data at your input fields to assure that you have covered all corners in terms of security whether be it SQL injections or others.

Another great method to help secure your database and user inputted data is to try out some programs that perform several tests on your input fields that can provide a general idea of where you are at.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Tags: , , ,

30 Amazing Blog Header Designs For Inspiration

August 23rd, 2010 | 3 Comments | Posted in Various

Header is the first thing that one notices while opening any website. Since it’s a header, it is supposed to be seen first :P In that case, if one has a rather beautiful website header, it really helps to make that awesome first impression on it’s users and visitors. Here, in this article we have compiled 30 amazing websites with the most amazing headers we could find. Though we have tried out best to list out the best of the best web headers around there, let us know if you have some cool web headers with you too by dropping in your comments. Have fun appreciating the beautiful designs :)

1. Jason Brandbury

jason

More »

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks

Awesome Freebies: 30 Useful Photoshop Actions

August 20th, 2010 | 3 Comments | Posted in Graphics, Photoshop, Resources, Various

The power of Photoshop actions can many times be underestimated by designers and photographers. Once you learn how to make them and load them, you will discover a whole new powerful aspect of the Photoshop software. Actions can be used for almost any task and they will save you a lot of time too. By recording a set number of things that are done inside the software, you can do those things over and over with a single click instead of having to do every step on all of your photos/designs. Not only can you make photos look better, you can also use this for making frames, saving designs in various formats and almost all tasks imaginable.

This time we’ve put together a great collection of free actions that already have been made.

Enjoy!

Page curl

More »

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
Tags: , , , , ,

Community News

  • Create Beautiful Mystery Grunge Effect in Photosho…

    In this Photoshop tutorial, I would like to tell how to make a beautiful mystery grunge artwork, using some stock images and brushes. It is not very hard work, but it requires some skill and your i…

    August 27, 2010
  • 10 Ways to Come up With New, Fresh Ideas

    Whether you run a business or manage a marketing strategy, you know that new ideas can sometimes be hard to find. You want to find ways to differentiate yourself from competitors, but creativity do…

    August 27, 2010
  • 40 First-Class Premium Magazine Style WordPress Th…

    In our next post, we will be showcasing 40 First-Class Premium Magazine Style WordPress Themes.

    August 27, 2010
  • 5 Awesome Examples of Black and White Photography

    Black and white photography is crisp and clean with its patterns to intrigue our minds. It tells stories of life. This showcase features 5 amazing monochrome shots that, surely, will impress you wi…

    August 27, 2010
  • 30 Nice & Beautiful Looking Portfolio Designs

    Portfolio usually known as your work identity over web or showcase of your works which helps you to get paid. Designing of Portfolio is a quite difficult job for an artist as he needs to show his a…

    August 27, 2010









Captcha
To prevent spam, please type the text (all uppercase) from this image in the textbox below.