Security Tutorials

  • By
    Block Access to Include Files Using .htaccess

    When I build websites for clients and myself, I use numerous include files to make my website easy to maintain. These include files may:be composed of pure HTML; no server-side programming involvedbe PHP class files; used throughout the websitecomposed of both HTML and PHPPHP code...

  • By
    Prevent Directory Listings With .htaccess

    Preventing a directory listing for your website is essential these days. If a hacker knows your website structure you can be left open for a world of hurt. Did you know that you can prevent directory listings for every directory in your website by...

  • By
    PHP Force Download – Keep Track of What’s Going Down

    A force-download script can give you more control over a file download than you would have providing a direct link. Using a force-download script, you can:Validate that a person is logged inIncrement a counter in a text fileConnect to your database and log IP information...

  • By
    PHP Email Encoder – Prevent Spam Bots From Collecting Email Addresses

    Police have criminals. PETA has Michael Vick. Bud Selig has Barry Bonds. Programmers have spammers. Email spam is probably the most annoying part of my job. Whenever I'm placing email addresses on a page or coding another web form, I have to expend...