폼메일에 스팸이 계속들어오는데 조건문달려면 어떻게 해야되나요... 채택완료
이름 : Purify and RejuvenateYour Body: http://pure-colon-detox.info/" target="_blank">http://pure-colon-detox.info
연락처 : 9333333333
문의사항 : Purify and RejuvenateYour Body!
- Flushes Toxins from the Body
- Kick-Starts Weight-Loss
- Relieves Constipation & Bloating
- Increases Energy Levels
http://pure-colon-detox.info/" target="_blank">http://pure-colon-detox.info
이런식으로 스팸이 계속오는데
.info가 들어간 내용은 안보내지게 차단할 수 없을까요?
사용중인 코드입니다.
조건문 코드 조금만 알려주세요..
도움부탁드립니다. ㅠ
</p><pre><!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>실시간 수술 상담</title>
</head>
<link rel="stylesheet" href="form_style.css">
<body>
<div id="form_wrapper">
<form name="contactform" method="post" action="send.php">
<table id="form_container">
<tr>
<td class="form_text">
<label for="first_name">이름</label>
</td>
<td>
<input class="index_box" name="first_name" type="text" maxlength="50">
</td>
</tr>
<tr>
<td class="form_text">
<label for="telephone">연락처</label>
</td>
<td>
<input class="index_box" name="telephone" type="text" maxlength="30">
</td>
</tr>
<tr>
<td class="form_text">
<label for="comments">문의내용</label>
</td>
<td valign="bottom">
<textarea class="consult_box" name="comments"></textarea>
</td>
</tr>
<tr>
<td>
<label for="chk"></label>
</td>
<td class="form_text" valign="bottom">
개인정보수집 및 이용에 동의<input type="checkbox" name="chk" value="Y">
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">
<input class="send_box" type="submit" value="상담신청">
</td>
</tr>
</table>
</form>
</div>
</body>
</html></pre><pre>
답변 2개
</p><p style="font-family: Verdana, 나눔고딕, NanumGothic, "맑은 고딕", "Malgun Gothic", Gothic, 고딕, AppleGothic, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);">if(preg_match("/[\xE0-\xFF][\x80-\xFF][\x80-\xFF]/", $InputValue)) </p><p style="font-family: Verdana, 나눔고딕, NanumGothic, "맑은 고딕", "Malgun Gothic", Gothic, 고딕, AppleGothic, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"> //글작성 허용</p><p style="font-family: Verdana, 나눔고딕, NanumGothic, "맑은 고딕", "Malgun Gothic", Gothic, 고딕, AppleGothic, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);">else</p><p style="font-family: Verdana, 나눔고딕, NanumGothic, "맑은 고딕", "Malgun Gothic", Gothic, 고딕, AppleGothic, sans-serif; font-size: 12px; background-color: rgb(255, 255, 255);"> // 꺼져</p><p>
현재 스팸을 보내는 조건중에서 이상적인 필터링 형태는 한글이 포함되어 있냐 아니냐 인듯 싶네요
한글이 없으면 통과 안시키는 방법은 어떠실지...
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
form을 아래 처럼 추가하시고