Ip

Started on the old forum in September 2007 · view the original in the archive · old links redirect here

13 replies · 1,244 views · started 19 years ago · 1 min read

3 participants
hardrave #1

how do i insert a country or host .txt when i add a inlude ip detector

amylee Principal · 1,092 posts #2

do you mean like resolving an ip address? dont fully understand what your asking tbh

hardrave #3

yep that i see their host

amylee Principal · 1,092 posts #4

try this

<?php
    $ip = $_SERVER['REMOTE_ADDR'];
    $fullhost = gethostbyaddr($ip);
    $host = preg_replace("/^[^.]+./", "$ip.", $fullhost);
?>

IP address <?=$ip?> | Host: <?=$host?>
hardrave #5

try this

<?php
    $ip = $_SERVER['REMOTE_ADDR'];
    $fullhost = gethostbyaddr($ip);
    $host = preg_replace("/^[^.]+./", "$ip.", $fullhost);
?>

IP address <?=$ip?> | Host: <?=$host?>

thank u only where do i add that??

alesh Lead · 604 posts #6

try this

<?php
    $ip = $_SERVER['REMOTE_ADDR'];
    $fullhost = gethostbyaddr($ip);
    $host = preg_replace("/^[^.]+./", "$ip.", $fullhost);
?>

IP address <?=$ip?> | Host: <?=$host?>

cn it b modified 4 lava script?

i'd like 2 put tht in user profile so admin/mods cn c the country/host....

pls

eeeeerrr....

amylee Principal · 1,092 posts #7

yeah should be able to add it to lava script with a lil editing

alesh Lead · 604 posts #8

yeah should be able to add it to lava script with a lil editing

so... it should b modified user profile and core.php....? or the core doesnt need 2 b touched?

eeeeerrr....

alesh Lead · 604 posts #10

Do tell me if am wrong or misunderstood the question, but would I be right in saying that won’t actually show the users ip details to the owner infact it will be showing the owners itself??

External image (may be gone)

huh?

eeeeerrr....

crazybrumi Super moderator Principal · 1,064 posts #11

ok so say if i logged into a chat site, and i went to visit a profile and it had that code inserted it would come up with my ip details not the users profile i am visiting. i think to get the user pprofile i may b visitng u will need a database involvd to store the ip once theyv loged in and then a code 2 display it

Want something coded email me at sales@webnwaphost.com for a prices.

http://flagcounter.com/more/W80q

alesh Lead · 604 posts #12

i dnt really get this.... when i put the code at user profile, i just get sum strange double ip address

4 e.g. mine is IP address =87.252.131.208 | Host: =87.252.131.208.252.131.208

wtf??

eeeeerrr....

alesh Lead · 604 posts #14

the second one is the host addy, so ur internet providers and uv got ur unique one from that, but im probs wrong, wel i got an inkinlin am defo wrong lol sorry m8

yeah but i thought it would say ht-mobile lmao

this doesnt work as i thought so i guess

eeeeerrr....

Sign in to reply.

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close