Blocking Baidu

Posted by & filed under Internet.

Went through this a year or so ago. The Baidu spider was hammering a forum and I blocked it because after hundreds of thousands of hits they sent me a grand total of 1 visitor. Let it sit for a while and then removed the block to see what would happen. Today I noticed that… Read more »

htaccess to deny access, except for includes

Posted by & filed under Programming.

It’s usually a bad idea to allow php include files to be directly accessed. My general method is to either declare a constant in the index.php and check for that constant in the included file or make sure that the included file doesn’t match $_SERVER[‘REQUEST_URI’]. Sure, either of those work. But I came across a… Read more »