Unstoppable Domains โ€” Get your daily AI drops report

Show IP, Browser etc...?

SpaceshipSpaceship
Watch
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
It is very basic to show the visitor's IP address. Simply use something like:

<?php

echo $_SERVER['REMOTE_ADDR'];

?>

As for browser, resolution I believe it can be done easily with Javascript.

I think it uses something like screen.width and screen.height
 
0
•••
0
•••
Is there any scripts that I can buy?
 
0
•••
Why buy it if it's free ???
 
0
•••
all4cost said:
Why buy it if it's free ???

And when you can code it yourself in just 5 minutes with a nice layout :P :tri:
 
0
•••
I can't find the code for everything I need....
 
0
•••
http://www.namepros.com/showpost.php?p=692327&postcount=3

Browser and IP:
PHP:
<?php

echo "Browser: " . $_SERVER["HTTP_USER_AGENT"] . "<br />";
echo "Your IP is: " . $_SERVER["REMOTE_ADDR"];

?>
Screen resolution.
HTML:
<script type='text/javascript'>
w = screen.width;
h = screen.height;
document.write('The resolution is: ', w, 'ร—', h + "<br>");
</script>
 
1
•••
Anyone care to share their code to show the country of the ip along with showing the country flag?
 
0
•••
You need a large database for this, which is sorting the IPs in order of countries. Check Maxmind products: http://www.maxmind.com/

I think there's a free database included for IP-to-Country only.
 
0
•••
Designporte said:
You need a large database for this, which is sorting the IPs in order of countries. Check Maxmind products: http://www.maxmind.com/

I think there's a free database included for IP-to-Country only.
Hmmm... interesting I'll check it out later on. Thanks for the link.

I'm also looking for a script/code that will detect if someone is using a proxy and let them know if it's a good one or not. Hope that makes sense.
 
0
•••
Designporte said:
You need a large database for this, which is sorting the IPs in order of countries. Check Maxmind products: http://www.maxmind.com/

I think there's a free database included for IP-to-Country only.
Large database is right. I downloaded a database (from another site) The database alone will be around 4-5 MB's :o
 
0
•••
4-5 MB I would have thought gigs myself.

Just 1 note alot of those databases are out of date and do not always show the correct location..
 
0
•••
SecondVersion said:
Large database is right. I downloaded a database (from another site) The database alone will be around 4-5 MB's :o

i purchased the cities one its about 200mb worth of sql data :S :P

and still i am trying to upload it on my local server :lol:
 
0
•••
0
•••
does those show real ips or proxies?
 
0
•••
lol, if you have SSH (SHELL) Access from your HOST you can easily upload large databases to servers, I once uploaded 1.2 GB and it didn't take much of a time
it felt like i uploaded a 10 MB file to the server, but not all host gives out SHELL access to users. you can try to talk over your host and give them a very good reason and maybe they will give you SSH access.:D
 
0
•••
Once you have the sql file to the server how do import it to the database?
 
0
•••
jdk said:
Once you have the sql file to the server how do import it to the database?
? ... Just go into phpMyAdmin, select your database. And run the SQl file. If this is what you're talking about.

-Eric
 
0
•••
Nice Links
 
0
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back