Skip to content

Commit 7002e1f

Browse files
author
İsmail BASKIN
committed
Update readme to remind hostname field check
1 parent 2619e14 commit 7002e1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ $recaptcha = new \ReCaptcha\ReCaptcha($secret);
8383
$resp = $recaptcha->verify($gRecaptchaResponse, $remoteIp);
8484
if ($resp->isSuccess()) {
8585
// verified!
86+
// if Domain Name Validation turned off don't forget to check hostname field
87+
// if($resp->getHostName() === $_SERVER['SERVER_NAME']) { }
8688
} else {
8789
$errors = $resp->getErrorCodes();
8890
}

0 commit comments

Comments
 (0)