filter bots
Posted: Tue May 12, 2015 8:22 pm
I am constantly working on new ideas for countermeasures against ad blocking
after scanning and searching I found a chunk of code that had some potential
does leveraging the preg_match to spot Google etc, how can I use this to tell JavaScript that its a bot and beat up on it
many in script??
<script>
if <?php preg_match('/robot|spider|crawler|curl|^$/i', $_SERVER['HTTP_USER_AGENT'])); ?>
else
//run the rest of the security
</script>
after scanning and searching I found a chunk of code that had some potential
Code: Select all
preg_match('/robot|spider|crawler|curl|^$/i', $_SERVER['HTTP_USER_AGENT']));many in script??
<script>
if <?php preg_match('/robot|spider|crawler|curl|^$/i', $_SERVER['HTTP_USER_AGENT'])); ?>
else
//run the rest of the security
</script>