스팸 막는 구글 리캡차 설치중 질문이 있습니다.
관련링크
본문
https://www.google.com/recaptcha/intro/index.html
리캡차 프로그램을 사이트내에 등록폼페이지에 설치중인데요.
구글 위의 페이지에 사이트 등록을 하고 키를 받아서
해당 html페이지 header안에 넣었고
나는 로봇이 아닙니다.부분이 나오고 싶은곳에 소스를 넣어 두가지는 완료했습니다.
그리고 페이지 (https://www.cape.edu/programs/american/registration.html)에도 잘 나오는데요.
그 다음 단계인 verify 코드를 어디서 받으라는지 모르겠습니다.ㅠㅠ 리캡차에서 등록 누르면 post를 받고 코드섹션을 가라는데 이건 어디서 봐야하나요?
이건 제가 구글한 페이지에서 얻은 정보인데 모르겠어요..
Now frontend implementation of recaptcha is over, you can run HTML and see recaptcha, so go to code section.
When user submits the recaptcha form, the user gets a response POST
parameter. To verify the User:
[g-recaptcha-response]
You should send a GET
request to Google along with the response and Secret key.
Now, I am attaching a button on web page to submit form:
<asp:Button ID="btnLogin" runat="server" Text="Check Recaptcha" OnClick="btnLogin_Click" TabIndex ="4"/>
미리 너무 감사드립니다.
답변 2
post 값을 처리하는 페이지에서 처리하시면 됩니다.
https://developers.google.com/recaptcha/intro
위 url에서
overview
3. Verifyinf the user's response
를 읽어 보세요.
php 를 사용하신다면 code examples 에서 php 를 참고하시면 됩니다.
(https://github.com/google/recaptcha)
질문글에서 언급하신 url 은 asp.net 예제입니다.