Skip to content

Commit

Permalink
remoived the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulalam31 committed Jul 23, 2024
1 parent 080edc0 commit a74cf62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Middleware/AbuseIp.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ class AbuseIp
{
public function handle(Request $request, Closure $next)
{
$abuseip = config('abuseip.spam_ips');
$abuseip = config('abuseip.abuse_ips');

Log::info('Request IP: ' . $request->ip());
Log::info('Spam IPs: ', $abuseip);
if (in_array($request->ip(), $abuseip)) {

Log::info('Blocking IP: ' . $request->ip());
// Log::info('Blocking IP: ' . $request->ip());
return response('Your IP address has been blocked', 403);
}

Expand Down

0 comments on commit a74cf62

Please sign in to comment.