Example #1
0
 protected final function SpiderBlock(Closure $callback = null)
 {
     if (Request::isSpider()) {
         $ip = Request::ip();
         if ($callback) {
             return $callback($ip);
         }
         throw new Exception("SpiderBlock Block {$ip}", 2);
     }
     return $this;
 }