관리자 - 접속자 현황에서 IP에 대해서 whois 검색하기 > 그누4 팁자료실

그누4 팁자료실

그누보드4와 관련된 팁을 여러분들과 함께 공유하세요.
나누면 즐거움이 커집니다.

관리자 - 접속자 현황에서 IP에 대해서 whois 검색하기 정보

관리자 - 접속자 현황에서 IP에 대해서 whois 검색하기

본문

다들 알고 계실꺼 같긴한데, 막상 제가 못찾은것인지 검색해도 없길래
직접 만들어 보았습니다.

1. adm/whois.php 파일을 만들어 아래와 같이 저장합니다.
<?
include_once("./_common.php");
auth_check($auth[$sub_menu], "r");

$domain = $_GET['domain'];
if ($domain == "") exit();

$output = `whois $domain`;
echo "<pre>$output</pre>";

?>
<a href="http://www.korone.net">http://www.korone.net</a> (korone gmail com)

2. adm/visit_list.php 파일을 열어서 82 번째 줄의
<td>$ip</td>
--> 아래와 같이 수정합니다.
<td><a href=whois.php?domain=$ip target=_new>$ip</a></td>

3. 끝~
관리자 페이지에서 IP부분을 클릭하면 whois검색이 됩니다.

4. 참고사항
whois 정보를 알아내는 여러가지 방법이 있는데, 저는 리눅스 프로그램인
jwhois를 이용하였습니다. 따라서 반드시 jwhois를 설치해야 합니다.
그리고 버전도 높아야 합니다. (버전이 높아야지 국내/국외 IP할것없이
모두 다 잘 검색이 됩니다.)
제 서버는 제가 알아서 잘 설치를 했는데, 아시는 분 서버에다가 이 기능을
넣는다고 jwhois 소스코드 직접 받아서 다시 빌드를 했습니다. ^^

5. 참고사항2
게시판 같은데에서도 관리자 권한을 체크해서 글쓴이의 IP조회도 할 수 있게끔 활용하시면 좋을 것 같습니다. ^^

korone (korone gmail.com  http://www.korone.net)
추천
0

댓글 4개

좋은 정보 고맙습니다. 그런데  적용해보면 모든 IP들이 아래와 같은 메시지만 나옵니다.
어떤 경우에 이런 메시지만 보이게 되는지? 또한 jwhois 설치는 http://fr2.rpmfind.net/linux/rpm2html/search.php?query=jwhois&system=&arch 이 버전을 받아 설치할 경우 니눅스에서 다른 OS들에게 영향을 주거나 관련이 있는지 알고 싶군요.

[whois.crsnic.net]

Whois Server Version 2.0

Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.


No match for "66.249.65.200".
>>> Last update of whois database: Sat, 03 Mar 2007 05:00:14 UTC <<<

NOTICE: The expiration date displayed in this record is the date the
registrar's sponsorship of the domain name registration in the registry is
currently set to expire. This date does not necessarily reflect the expiration
date of the domain name registrant's agreement with the sponsoring
registrar.  Users may consult the sponsoring registrar's Whois database to
view the registrar's reported date of expiration for this registration.

TERMS OF USE: You are not authorized to access or query our Whois
database through the use of electronic processes that are high-volume and
automated except as reasonably necessary to register domain names or
modify existing registrations; the Data in VeriSign Global Registry
Services' ("VeriSign") Whois database is provided by VeriSign for
information purposes only, and to assist persons in obtaining information
about or related to a domain name registration record. VeriSign does not
guarantee its accuracy. By submitting a Whois query, you agree to abide
by the following terms of use: You agree that you may use this Data only
for lawful purposes and that under no circumstances will you use this Data
to: (1) allow, enable, or otherwise support the transmission of mass
unsolicited, commercial advertising or solicitations via e-mail, telephone,
or facsimile; or (2) enable high volume, automated, electronic processes
that apply to VeriSign (or its computer systems). The compilation,
repackaging, dissemination or other use of this Data is expressly
prohibited without the prior written consent of VeriSign. You agree not to
use electronic processes that are automated and high-volume to access or
query the Whois database except as reasonably necessary to register
domain names or modify existing registrations. VeriSign reserves the right
to restrict your access to the Whois database in its sole discretion to ensure
operational stability.  VeriSign may restrict or terminate your access to the
Whois database for failure to abide by these terms of use. VeriSign
reserves the right to modify these terms at any time.

The Registry database contains ONLY .COM, .NET, .EDU domains and
Registrars.
더 간단한 방법도 있습니다.
visit_ip.php에서

<td>$no</td>하단에
<td><a href=http://whois.domaintools.com/$row[vi_ip] target=_new>$row[vi_ip]</td>

넣으시면 domaintools.com을 이용하여 whois가 가능합니다.
전체 3,313 |RSS
그누4 팁자료실 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT