vpn 이용한 회원가입 막기 > 기술자료

본문 바로가기

사이트 내 전체검색

vpn 이용한 회원가입 막기 > 기술자료

그누보드 vpn 이용한 회원가입 막기

페이지 정보


본문

VPN 접속을 이용한 회원가입을 막는 팁 입니다
그누보드4용으로 제작된 내용을 그누보드5 용으로 변경합니다
그누보드4 적용 출처 : https://sir.kr/g4_tiptech/31205

2021-05-26  $vpn 이 다른 어딘가에서 사용될 가능성이 있으므로, $vpn_deny 로 변경
2021-05-27  적용테스트를 했으나 성공이 안되서 확인중
2021-05-27  정상작동 확인


< 예제.1  - IP: 122.99.252.100 >

KRNIC is not an ISP but a National Internet Registry similar to APNIC.

[ Network Information ]
IPv4 Address       : 122.99.252.0 - 122.99.255.255 (/22)
Organization Name  : LX
Service Name       : LXN
Address            : Seoul Guro-gu Digital-ro 31-gil
Zip Code           : 08375
Registration Date  : 20060605

<a href="javascript:rolling('eng_isp_contact', 'eng_isp_contact_icon');"><img border="0" src="/images/ipwhois/plus.gif" id="eng_isp_contact_icon" name="eng_isp_contact_icon"> See the Contact Info</a>
<div id="eng_isp_contact" name="eng_isp_contact" style="display:none;background:#F1F8F9;">Name               : IP Manager
Phone              : +82-2-851-0111
E-Mail             : help@lxn.co.kr
</div>
--------------------------------------------------------------------------------

More specific assignment information is as follows.

[ Network Information ]
IPv4 Address       : 122.99.240.0 - 122.99.255.255 (/20)
Organization Name  : ESOCOM
Network Type       : CUSTOMER
Address            : Digitalro gil Gurogu Seoul Korea
Zip Code           : 08378
Registration Date  : 20140301


< 예제.2  IP: 77.111.246.38 >

% Information related to '77.111.246.0 - 77.111.246.255'

% Abuse contact for '77.111.246.0 - 77.111.246.255' is 'abuse@hernlabs.se'

inetnum:        77.111.246.0 - 77.111.246.255
netname:        HERNLABS
country:        SE
admin-c:        HLN412-RIPE
tech-c:         HLN412-RIPE
abuse-c:        ACRO10700-RIPE
status:         SUB-ALLOCATED PA
mnt-by:         HERNLABS-MNT
created:        2017-11-27T16:04:06Z
last-modified:  2017-11-27T16:04:06Z
source:         RIPE

% Information related to '77.111.246.0/24AS205016'

route:          77.111.246.0/24
mnt-lower:      HERNLABS-MNT
origin:         AS205016
mnt-by:         OPERA-MNT
created:        2017-11-27T12:48:46Z
last-modified:  2017-11-27T16:11:08Z
source:         RIPE



아래 내용을 저장해서  vpn_deny.extend.php 라고 저장해서 extend 폴더에 업로드 합니다

<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

// ------------------------------------------------------------------------------------
//  vpn 접속 차단
// ------------------------------------------------------------------------------------
$vpn_deny = array();
$vpn_deny[] = 'ESOCOM';  // 이소x
//$vpn_deny[] = '하이온x'; // 하이온x
$vpn_deny[] = 'OPERA-MNT';  // OPERA VAN
if (stristr($_SERVER['PHP_SELF'], 'bbs/register')) {
    //$fp = fsockopen("whois.nic.or.kr", 43);
    $fp = fsockopen("whois.kisa.kr", 43);
    //$fp = fsockopen("xn--c79as89aj0e29b77z.xn--3e0b707e", 43); // 후이즈검색.한국
    if($fp) {
        fputs($fp,"{$_SERVER['REMOTE_ADDR']}\n");
        while (!feof($fp)) {
            $row = fgets($fp, 80);
            if (!preg_match("/^utf/i", $g5['charset']))
                $row = iconv("utf-8", "cp949", $row)."
            ";
            for ($i=0, $m=count($vpn_deny); $i<$m; $i++) {
                if (stristr($row, $vpn_deny[$i])) {
                    alert("VPN 상태에서는 회원가입(정보수정)을 지원하지 않습니다.");
                    goto_url(G5_URL);
                }
            }
        }
    }
}
//------------------

댓글목록

등록된 댓글이 없습니다.


Total 2,650건 11 페이지
  • RSS
기술자료 목록
2450
그누보드   7561  2021-02-18 10:28 ~ 2021-02-18 14:10  
2449
그누보드   7921  2021-02-08 14:43 ~ 2021-02-08 16:31  
2448
PHP   13267  2021-01-20 12:07 ~ 2021-01-27 13:35  
2447
전자결제   10510  2021-01-01 01:20 ~ 2021-01-13 19:41  
2446
JavaScript   7445  2020-12-24 19:40  
2445
HTML   6004  2020-12-20 11:42  
2444
SNS   11084  2020-12-18 07:58  
2443
그누보드   9004  2020-12-14 18:09 ~ 2023-04-04 11:18  
2442
SNS   8137  2020-12-11 09:37 ~ 2020-12-18 11:55  
2441
Apple   6826  2020-12-10 14:22 ~ 2020-12-17 00:27  
2440
Android   10862  2020-12-10 12:22 ~ 2020-12-17 00:27  
2439
그누보드   7783  2020-12-07 15:15 ~ 2022-12-17 21:15  
2438
SNS   7811  2020-11-30 14:39 ~ 2020-12-12 09:04  
2437
SNS   7050  2020-11-29 16:55 ~ 2020-12-18 19:53  
2436
SNS   12414  2020-11-25 14:04 ~ 2020-12-12 09:05  
2435
Apple   6586  2020-11-24 19:27 ~ 2020-11-24 19:34  
2434
SNS   7562  2020-11-23 03:38 ~ 2020-12-17 09:25  
2433
SNS   8054  2020-11-20 17:16 ~ 2020-11-23 03:07  
2432
SNS   13432  2020-11-19 12:20 ~ 2023-09-12 19:14  
2431
SNS   24278  2020-11-19 12:16 ~ 2020-12-18 19:00  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 1동 222호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 제2024-대전대덕-0405호 [사업자등록확인]  
Copyright 2001~2026 해피정닷컴. All Rights Reserved.