Category Archives: Security

How to block bad bots with .htaccess and php

Block Bad Bots

In this tutorial, we’ll learn how to block bad bots and spiders from your website using .htaccess and PHP. We can save bandwidth and performance for customers, increase security, and prevent scrapers from putting duplicate content around the web. Few days ago ,I was checking log files on my server and I found that a bot was hitting my site ... Read More »

How to secure PHP websites from hackers

Security is an often overlooked part of PHP programming.It is almost impossible to make your website 100% secure but there are few things you must follow  to secure PHP websites from hackers.Here is the few tips which must be follow by developers to secure PHP websites from hackers. 1.Never Execute Unescaped Queries(Protection against SQL Injection)-SQL Injection is the most well knowledge ... Read More »

Add captcha to your form using PHP step by step

Captcha is very popular method to prevent automated software from performing actions which degrade the quality of service of a given system .You can add captcha to your form using php by following these steps- 1.Generate a random image to add captcha to your form using PHP- In this step we are going to code a program which will generate an ... Read More »