Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocapikk authored Mar 28, 2023
1 parent 964c89e commit e9c4c2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ip-logger/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
$x_forwarded_for = trim($elements[0]);

$whitelist =
'/^(?:(?:[0-9]{1,3}\.){3}[0-9]{1,3}|[a-zA-Z0-9.\-&_\$\{\}\*]+)$/';
'/^(?:(?:[0-9]{1,3}\.){3}[0-9]{1,3}|[a-zA-Z0-9.\-&_\$\{\}<>\*]+)$/';

if (preg_match($whitelist, $x_forwarded_for)) {
$log_entry = $client_ip . " - " . $x_forwarded_for;
Expand Down

0 comments on commit e9c4c2d

Please sign in to comment.