그누보드 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);
}
}
}
}
}
//------------------
그누보드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);
}
}
}
}
}
//------------------
댓글목록
등록된 댓글이 없습니다.