moola Posted May 31, 2007 Share Posted May 31, 2007 Hey I was just wondering if there is a way to block Cyberbuddy (look it up on google) from accessing my site and stealing my bandwith. In my stats it appears as a browser called cyberbuddy; I basically want to stop leeching from my site. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/53681-how-to-block-certain-browsers/ Share on other sites More sharing options...
trq Posted May 31, 2007 Share Posted May 31, 2007 You could try checking $_SERVER['HTTP_USER_AGENT']. eg; <?php if (strpos($_SERVER['HTTP_USER_AGENT'],"cyberbuddy")) { die(); } ?> Quote Link to comment https://forums.phpfreaks.com/topic/53681-how-to-block-certain-browsers/#findComment-265349 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.