want to join us? register, it's easy | help

browse by tag: secure

sort by

newest, oldest, most popular


category icon

PHP Security: SQL Injection

in PHP added by CombinedMinds, on 26/8/2007 security sql injection

This tutorial will explain SQL Injection. A very common security flaw not much people take serious because its a little bit harder for a cracker to hack.

comment save report
category icon

The fastest way to see how many people are online at your site

in PHP added by Nikolas, on 2/9/2007 cookies and sessions online security session

A quick way to see how many people are browsing your site for php enabled web sites.

comment save report
category icon

PHP Security: Sending an email

in PHP added by CombinedMinds, on 10/9/2007 email mail security

You probably wouldn't expect it, but the well known function mail() is a often a goldmine for spammers. In this tutorial we'll talk about the danger of using mail() in your PHP powered website.

comment save report
category icon

Securing your MySQL queries with sprintf

in PHP added by Wildhoney, on 13/9/2007 programming security sessions

Sprintf in itself will not secure a MySQL query from head to toe. That should be made clear from the word go. There are many more techniques that go into ensuring a MySQL statement is safe to execute on the MySQL server. Sprintf will, however, take a lot of the sting out of any malice.

Not only will your new found knowledge help you when it comes to security, but sprintf and its twin brother with a slight genetic mismatch, printf, are on hand to make your PHP code look a lot more programmer-friendly.

comment save report
category icon

Understanding the Life of a Session

in PHP added by Wildhoney, on 15/9/2007 advanced tutorials security session sessions

One of the most vast misconceptions in the PHP world is how sessions really do work. I'm fairly confident most of us know how to start sessions, terminate sessions, regenerate session IDs and easily pass data from 1 page to another. But do you really know how they work inside out?

comment save report
category icon

Traverse Directories the Easy Way with Glob

in PHP added by Wildhoney, on 16/9/2007 file handling security session sessions web

There is a powerful yet somewhat unheard of function in PHP titled glob(). Many beginners and intermediates alike struggle with the traversing of directories. Acquiring the directories contents and returning them in a readable format. If only they know how so very easy this task was!

comment save report
category icon

PHP Security: GET - include

in PHP added by CombinedMinds, on 4/10/2007 get include security

You often find websites with serious but simple to fix security flaws. In this series we will talk about this. This time about GET - include problems.

comment save report
category icon

Better Sessions

in PHP added by goodphptutorials, on 25/10/2007 cookies and sessions ip security session hijack

Sessions have inherent problems, as most developers know. A session ID can be easily hijacked, and that can cause major problems with security in a website. There are ways around this - in PHP you can set up sessions so that the session ID can only be transmitted using cookies, but then you prevent those without cookies from logging in. One way around this problem is to tie your session ids to the user's IP address.

comment save report
category icon

More secure PHP image upload class tutorial

in PHP added by kreoton, on 22/11/2007 image security upload

This tutorial shows how to build safe image upload class.

comment save report
category icon

Apache Tips and Tricks: Hide PHP version (X-Powered-By)

in PHP added by goodphptutorials, on 30/12/2007 apache headers security

You can configure apache to provide only a minimal amount of information about the installed software versions in its banner. But if you are using the PHP module in your web server (as most of us are), then there is one additional step that need to be completed, and this is what I will show you in this tip.

comment save report
category icon

Creating a simple login script with php and mysql

in PHP added by ineedtutorials, on 31/12/2007 beginner tutorials content management mysql security

Learn to create a simple login system with php and mysql in 7 simple steps

comment save report
category icon

PHP Captcha Tutorial (in-depth)

in PHP added by techusky, on 2/1/2008 advanced tutorials captcha php5 security verification

This CAPTCHA script allows a user to easily customize things such as the string length, minimum and maximum font size, image size, the font used, and even the characters used, etc... Unlike most CAPTCHA scripts that generate the random text based on an md5 hash of the time, this one lets the user input specific numbers, uppercase, and lowercase characters they want used (or don't want used) in the creation of the CAPTCHA image. It also assures, regardless of the length of the string, that there is at least both 1 random upper and lowercase character in the string, thus making it more difficult for bots. Another feature in this script is that it randomly rotates each character on the image.

comment save report
category icon

Complete advanced login member system

in PHP added by ineedtutorials, on 17/1/2008 advanced tutorials content management database login mysql security

This tutorial will show you how to create an advanced member login system with PHP, users can register, change password, email activation is included.

comment save report
category icon

How to Use PHP's Crypt() Function to Encrypt and Check a Password

in PHP added by Walkere, on 28/1/2008 beginner tutorials encryption passwords php5 security

This tutorial will walk you through using PHP's crypt() function to effectively encrypt a password for storage in a database and later check that password against a user's input.

comment save report
category icon

How to Generate a Random Password for Users

in PHP added by Walkere, on 10/2/2008 beginner tutorials password php5 security users

This tutorial shows you how to create a random, 8-character password to use in your user-management system.

comment save report
category icon

Creating a CAPTCHA image with security code to validate forms

in PHP added by tutorialhelpdesk, on 5/3/2008 captcha form validation image security

In this tutorial you will learn to create a security code image generator, or a CAPTCHA image, that is so helpful against spammers.

comment save report
category icon

Creation of captcha / Part II /Secure forms

in PHP added by Jordan, on 12/5/2008 captcha secure

Display captcha using secure forms.

comment save report
category icon

How to encrypt user info with php

in PHP added by jinxit, on 2/7/2008 encryption md5 salt security

If you run a serious webpage where you save login information for your members to a database it is generally a very good idea to perform some kind of encryption on these password to prevent the information to be shared in case your datebase would be hacked. This tutorial shows you how to do this.

comment save report
category icon

Random Password Generation

in PHP added by clearnetwork, on 15/7/2008 beginner tutorials general random security

A common feature found on many websites upon user registration are random passwords. This tutorial will walk you through a script that generates a random password to a given length.

comment save report
category icon

The Truth about Sessions

in PHP added by goodphptutorials, on 22/10/2008 advanced tutorials security session

Nearly every PHP application uses sessions. This article takes a detailed look at implementing a secure session management mechanism with PHP. Following a fundamental introduction to HTTP, the challenge of maintaining state, and the basic operation of cookies, I will step through simple and effective methods that can be used to increase the security and reliability of your stateful PHP applications.

comment save report
category icon

Introduction to SQL Injection

in PHP added by iDemonix, on 8/12/2008 beginner tutorials database injection mysql security sql

In this tutorial we look at the issue of SQL injection, how the attackers use it, the problems that can arise and methods of prevention using PHP.

comment save report
category icon

The adventure of PHP and the magic quotes

in PHP added by goodphptutorials, on 19/12/2008 beginner tutorials compatibility security

Back in PHP 2, the “magic quotes” setting seemed like a great idea. It would automatically escape all of your input so you didn’t have to worry about those pesky SQL injections. Any dodgy characters entered by the user would be automatically escaped by a backslash.

comment save report
category icon

5 Helpful Tips for Creating Secure PHP Applications

in PHP added by goodphptutorials, on 3/1/2009 advanced tutorials security

PHP is one of the most popular programming languages for the web. Sometimes a feature-friendly language can help the programmer too much, and security holes can creep in, creating roadblocks in the development path. In this tutorial, we will take a look at 5 tips to help you avoid some common PHP security pitfalls and development glitches.

comment save report
category icon

PHP and AJAX - Make a Password Strength Bar that Updates in Real-time

in PHP added by scott25, on 2/2/2009 beginner tutorials databases general mysql security

This tutorial will show you how to make a very simple feature which will help your users make more secure passwords, in registration forms. After the user types their password, this script will make a request to a PHP page, which will check the password for lowercase letters, uppercase letters, numbers and symbols. Without reloading the page, a bar displaying the strength of the password will be shown to the user.

comment save report
category icon

10 Advanced PHP Tips Revisited

in PHP added by goodphptutorials, on 23/4/2009 beginner tutorials security tips

Because of PHP's huge popularity, it has become almost impossible for Web developers not to have at least a working knowledge of PHP. This tutorial is aimed at people who are just past the beginning stages of learning PHP and are ready to roll up their sleeves and get their hands dirty with the language. Listed below are 10 excellent techniques that PHP developers should learn and use every time they program. These tips will speed up proficiency and make the code much more responsive, cleaner and more optimized for performance.

comment save report