메뉴 건너뛰기

pds

[애드온] CAPTBHA

lispro062014.05.05 03:45조회 수 13240댓글 0

  • 1
    • 글자 크기

captbha(Completely Automated Public Turing test to tell Bots and Humans Apart)


이다.


CAPTCHA(Completely Automated Public Turing test to tell Computers and Humans Apart) 를 응용해 captpbha(Completely Automated Public Turing test to tell Bots and Humans Apart)로 네이밍한 간단한 애드온입니다.


입력값으로 스팸 여부를 판단 후 필터링합니다.

월, 일, 시간을 연산 값으로 하며, 추가 문자를 붙일 수 있습니다.

captbha : [앞에 추가]5+4+17[뒤에추가]

입력해야할 값 : [앞에 추가]26[뒤에추가]

captbha : [앞에 추가]5*4*17[뒤에추가]

입력해야할 값 : [앞에 추가]340[뒤에추가]


기본

captbha : 5+4+3

입력해야할 값 : 12


쓰기 모드일 때,


$output = str_replace('〈/div>

〈/form>', '〈label>captbha('.$cb.')〈/label> 〈input type="text" name="captbha">〈/form>', $output);


위와 같이 str_replace로 쓰기 폼 마지막에 추가되는데, 이 부분이 적용 안되면, 해당 소스를 확인해서 수정해야겠습니다.


댓글은 적용이 안 되어서 다시 올렸는데, 누군가 그 전에 받아 버렸다. 흑..


일단 테스트 해보고 올려야 되는데, 급히 올려버렸다.


암튼, 스팸으로 인한 웹서버 다운을 당한 이상 고급 CAPTCHA를 적용하지 않으면 안 될 것 같다. 잘 동작하려나?


http://www.xpressengine.com/index.php?mid=download&category_srl=18322925&parent_srl=18322917&package_srl=22715595

lispro06 (비회원)
  • 1
    • 글자 크기
[XE] 다른 XE에 글 전송 애드온 (by lispro06) [유틸] 컬러 피커 (by lispro06)

댓글 달기

첨부 (1)
captbha.zip
1.8KB / Download 75
위로