Skip to content

Commit

Permalink
Update README.md (#49)
Browse files Browse the repository at this point in the history
Use `REMOTE_ADDR` instead of `REQUEST_ADDR` as the latter doesn't seem to be very common and is not found in the CGI spec (RFC 3875)
  • Loading branch information
Phosphenius committed Apr 1, 2022
1 parent 8e88207 commit 352e431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -28,7 +28,7 @@ $metadataFile = './Resources/metadata/extended.yml';
$detector = new BotDetector($loader, $metadataFile);

# Call detect() on BotDetector, passing in a user agent string and IP address,
# most commonly found in $_SERVER['HTTP_USER_AGENT'] and $_SERVER['REQUEST_ADDR']
# most commonly found in $_SERVER['HTTP_USER_AGENT'] and $_SERVER['REMOTE_ADDR']
# respectively.
# detect() will return a Vipx\BotDetect\Metadata\Metadata object containing the
# details of a matched bot and null on no match.
Expand Down

0 comments on commit 352e431

Please sign in to comment.