Tag Archives: htaccess

Blocking Baidu

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 … Continue reading

Posted in Internet | Tagged , | Leave a comment

htaccess to deny access, except for includes

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 … Continue reading

Posted in Programming | Tagged , | 2 Comments