[FilterScript] GetPlayerHost
#1

Hi.

This is a pretty SIMPLE script to show how to get a player's host using PHP + HTTP.
I'm not sure if there are bugs or if the host ain't showing correctly, as I was the only one to test it with.

Download the script here: Pastebin

You don't have to host the .php file, it's being hosted on my site. Though if you want to, here's the code:
PHP код:
<?php
    $userip 
$_GET['IP'];
    
$hostname gethostbyaddr($userip);
    echo 
$hostname;
?>
See details in the script on how to change the URL for the hosted .php file.

Anyways, enjoy.

PS: Test it - yu-ki-ko.com/fsns/Host.php?IP=ENTER_YOUR_IP

PS-2: Whitetiger sucks
Reply
#2

well, It is extremely ...simple...compared to other scripts.
Anyone who knows a bit of PHP and PAWN can do that.

But its still very useful.

Good job.

((don't get me wrong that I don't like the idea and things, but this is more of a useful snippet. You should post that there ))
Reply
#3

Good job.
Reply
#4

I have entered my ip http://yu-ki-ko.com/fsns/Host.php?IP=MY IP

And i have output same ip adress as entered. I fink your script wont work
Reply
#5

i have a problem

Код:
Can't send your request. Response_Code: 3
Reply
#6

Response code 3 means that it can't connect.

@ Raimis_R: It returns the unmodified IP ( The one you entered ) when it fails.

I suggest y'all upload the .php onto another server. Mine's not always reliable
Reply
#7

It returned me adsl-109-228-l1937.crnagora.net witch is correct so its working!
Thx nice job
Also can we get PHP script?
Reply
#8

PHP код:
<?php
    $userip 
$_GET['IP'];
    
$hostname gethostbyaddr($userip);
    echo 
$hostname;
?>
That's the only thing required

@ Still trying to find a solution for those that DNS can't be found. So its returning their IP
Reply
#9

Very nice worked for me Thank you for releasing this
Reply
#10

nice script!


OFF:

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
It returned me adsl-109-228-l1937.crnagora.net witch is correct so its working!
Thx nice job
Also can we get PHP script?
okle si crnogorac? odg na pm
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)