public function ReCaptcha::setExpectedHostname in reCAPTCHA 8.2
Same name and namespace in other branches
- 7.2 recaptcha-php/src/ReCaptcha/ReCaptcha.php \ReCaptcha\ReCaptcha::setExpectedHostname()
Provide a hostname to match against in verify() This should be without a protocol or trailing slash, e.g. www.google.com
Parameters
string $hostname Expected hostname:
Return value
ReCaptcha Current instance for fluent interface
File
- recaptcha-php/
src/ ReCaptcha/ ReCaptcha.php, line 206
Class
- ReCaptcha
- reCAPTCHA client.
Namespace
ReCaptchaCode
public function setExpectedHostname($hostname) {
$this->hostname = $hostname;
return $this;
}