How to detect bots in a server side script like PHP

Humans and bots will do similar things, but bots will do things that humans don’t. Let’s try to identify those things. Before we look at behavior, let’s accept RayQuang’s comment as being useful. If a visitor has a bot’s user-agent string, it’s probably a bot. I can’t image anybody going around with “Google Crawler” (or Read more about How to detect bots in a server side script like PHP[…]

Adding mssql support in php5 on Debian or Ubuntu

To add/install MSSQL support in PHP5 on Debian linux server, follow the below steps: Install FreeTDS and the PHP MS SQL extension sudo apt-get install freetds-common freetds-bin unixodbc php5-sybase Note: That is correct, the MS SQL extension is in the “php5-sybase” package. Restart Apache sudo /etc/init.d/apache2 restart If everything went fine then you will be Read more about Adding mssql support in php5 on Debian or Ubuntu[…]

Cakephp preventing ARO to check for user permissions

In cakephp most of us use ACL with Auth component to manage logins and access to various pages. When we need to implement this feature based on User Roles only. Sometimes the ARO checking gives error – that the User not exist for the foreign key. This is because if the role does not have Read more about Cakephp preventing ARO to check for user permissions[…]

Type in your language using Microsoft Indic Language Input tool

Though most of my work involves use of English as primary language, my mother tongue is Hindi. So when I want to write blog posts or some other personal communication with my closed friends, sometimes I feel the need to be able to type in Hindi. Earlier I was using Google Transliterate tool, but that Read more about Type in your language using Microsoft Indic Language Input tool[…]

Configuring Horde Vacation Responder in Plesk 9

Today I had to work on the Plesk server webmail vacation responder settings, and looking at the Horde webmail option I found that this is not available in the default Horde Install in Plesk 9. Digging through many google search pages and search phrases I found a very useful and working link given below. Configuring Read more about Configuring Horde Vacation Responder in Plesk 9[…]