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 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(); } ?> 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
Archived
This topic is now archived and is closed to further replies.