Current time: 12-11-2016, 03:06 PM Stay in touch via Twitter Facebook RSS Feed
Ada Baiknya anda baca Peraturan Forum ForNesia Disini Dan Disitu Sebelum Terlambat!
System Registration Forums Mulai Kedepan Sewaktu waktu akan Di Tutup.
Silahkan Dibaca Mengenai Auto Pruning User . Agar tidak ada pertanyaan lagi tentang kehilangan akses forum.



[Share] php script menampilkan host ip kita

03-08-2014 10:50 AM php script menampilkan host ip kita
#1


ksatria Away
Baru Belajar
Registered
*

Posts: 9
Joined: Mar 2014

Reputation:

FCoin: 2.00ƒc
nih biar gak sepi ane share script buatr menampilkan host ip kita, sapa tau ada manfaatnya


PHP Code:
$agen $_SERVER['HTTP_USER_AGENT'];
$headere = array ('Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'Accept-Language: id,en-us;q=0.7,en;q=0.3');
$forwardFor $_SERVER["HTTP_X_FORWARDED_FOR"];
$fForwarded explode(', ' $forwardFor);
$Forwarded $fForwarded[0];
if(!empty(
$Forwarded)){
$ngendi $Forwarded;
}
else { 
$ngendi $_SERVER['REMOTE_ADDR']; }
$lookup 'http://aruljohn.com/track.pl?host='.$ngendi;
$ch curl_init();
curl_setopt ($chCURLOPT_URL$lookup);
curl_setopt ($chCURLOPT_HEADER0);
curl_setopt($chCURLOPT_TIMEOUT10);
curl_setopt($chCURLOPT_RETURNTRANSFER1);
curl_setopt ($chCURLOPT_AUTOREFERER1);
curl_setopt ($chCURLOPT_USERAGENT$agen);
curl_setopt($chCURLOPT_HTTPHEADER$headere);
$content curl_exec ($ch);
curl_close ($ch);
function 
potong($content,$start,$end){
if(
$content && $start && $end) {
$r explode($start$content);
if (isset(
$r[1])){
$r explode($end$r[1]);
return 
$r[0];
}
return 
'';
}
}
$str potong($content,'<table class="content-table">','</table>');

$livepotong($str,'Country</td><td>','<img');
$host=potong($str,'Hostname</td><td>','</td>');
if(
strstr($str,'')){$isppotong($str,'ISP</td><td>','');}
else{
$isppotong($str,'ISP</td><td>','</td>');}
$codepotong($str,'smallflags/','.gif');
$poster '';
if(!empty(
$live)) {
$poster .= $live.'^'.$code.'^';
}
if(!empty(
$isp)) {
$poster .= $isp;
echo 
$poster

silahkan di coba di xammp /appserv ato do hosting kalian, silahkan di kreasikan sesuai selera
03-08-2014 09:53 PM RE: php script menampilkan host ip kita
#2


mfahmiabdullah Away
ForNesia Family
Registered
*

Posts: 19
Joined: Feb 2014

Reputation:

FCoin: 2.00ƒc
setelah dicoba ternyata berhasil,tinggal mengembangkan hehe ketawaaa
03-08-2014 11:40 PM Smile RE: php script menampilkan host ip kita
#3


didi.manoso Away
HunteR
HunteR
*

Posts: 81
Joined: Mar 2014

Reputation:

FCoin: 9.81ƒc
thanks gan,,,, :dodgy:

didi.manoso, proud to be a member of ForNesia Family since Mar 2014.
03-09-2014 11:36 AM RE: php script menampilkan host ip kita
#4


chainX
Unregistered

 
FCoin: 0.00ƒc
keren bisa muncul benderanya juga..

kalo ane cuma tau yg begini doang..

<?php
$ip = $_SERVER['REMOTE_ADDR'];
echo $ip;
?>

kalo d'codeigniter palah cukup ke gini..

<?=$this->input->ip_address();=?>
03-09-2014 12:58 PM RE: php script menampilkan host ip kita
#5


N3utralize Away
ForNesia Family
Registered
*

Posts: 22
Joined: Mar 2014

Reputation:

FCoin: 2.00ƒc
^Atas ane, ini juga bisa kok gan. punya agan langsung nampilin 'REMOTE_ADDR'
tapi untuk yg TS posting kayaknya sampai ke browser,dll
CMIIW malus:
03-09-2014 09:19 PM RE: php script menampilkan host ip kita
#6


ksatria Away
Baru Belajar
Registered
*

Posts: 9
Joined: Mar 2014

Reputation:

FCoin: 2.00ƒc
tergantung gimana ngembanginnya toh itu cuman modifikasi grabbing




Possibly Related Threads...
Thread: Author Last Post
  [Share] php script speedtest ksatria 07-01-2016 09:38 AM
Last Post: reiku
  [Info] kumpulan script premium free Brandal 11-19-2015 10:03 PM
Last Post: loji
  [Ask] Script Share FB To View Link Di Blogger zeph 12-05-2014 11:11 PM
Last Post: ravikhayyu
  [Share] script ping in php ksatria 05-24-2014 01:13 AM
Last Post: droiders123

Search thread:


[-]
Advertisement