Category Archives: Programming/Coding

Prevent Malicious Bots/Spiders From Accessing Your Site Using .htaccess

There are various types of bots and spiders that transverse sites for different reasons. Among them activities such as email harvesting and other malicious activity. By using a .htaccess file, …

Tags: , , , , , , , | Posted under Programming/Coding | 3 Comments

How to Create a “Log Out” Script Based on Cookies with PHP

Hello, Today you will learn how to create a log out script in PHP. This applies only for those authentication systems that are based on cookie existence and evaluation. The …

Tags: , , , , , , , , , , | Posted under Programming/Coding | Leave a comment

URL Redirection Without Changing the Address in the Address Bar

Sometimes we want to redirect to a specific URL but keep the same address without any changes. As an example, we may need to redirect www.domain.com to www.domain.com/subdirectory . To …

Tags: , , , , | Posted under Programming/Coding | Leave a comment