Support Forums
[Tutorial] How to grab IP adress with PHP - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: [Tutorial] How to grab IP adress with PHP (/showthread.php?tid=4154)

Pages: 1 2 3


RE: [Tutorial] How to grab IP adress with PHP - flAmingw0rm - 04-06-2010

(03-12-2010, 04:41 PM)TheLifelessOne Wrote: How would you exclude a specific IP from being detected?

IP Adresses will be saved in the "ipadresses.txt" I think. Smile

(04-06-2010, 03:59 AM)Mr.Kewl Wrote: Good TUT bro
thanks

You're welcome.


RE: [Tutorial] How to grab IP adress with PHP - Kewlz - 04-06-2010

(04-06-2010, 04:32 AM)Risto Wrote: IP Adresses will be saved in the "ipadresses.txt" I think. Smile

(04-06-2010, 03:59 AM)Mr.Kewl Wrote: Good TUT bro
thanks

You're welcome.
yes u are right
If u change the Location Eg

lol.txt it will be saved thier


RE: [Tutorial] How to grab IP adress with PHP - Unwanted - 04-11-2010

(03-12-2010, 04:41 PM)TheLifelessOne Wrote: How would you exclude a specific IP from being detected?
Add an if statement to filter out the IP.
Then log anything that isn't equal to the IP specified.

PHP Code:
<?php
$ip 
$_SERVER['REMOTE_ADDR'];
$filterip "localhost";

if (
$ip == $filterip)
{
echo(
"Welcome!");
}
else
{
echo(
"You are not welcome here!");
}
?>

Hope this helped Big Grin


RE: [Tutorial] How to grab IP adress with PHP - Christopher - 04-11-2010

Looks good. Great for the newbies.


RE: [Tutorial] How to grab IP adress with PHP - SLiM - 04-13-2010

Yeah, this is such a old trick. I used to think I was so 1337 because I could do this but then I realised I was a complete knob. This is such noob-material. Anyways, hope someone learns something from this.


RE: [Tutorial] How to grab IP adress with PHP - Streeeam - 04-24-2010

Nice guide mate. Big Grin Might come in handy.


RE: [Tutorial] How to grab IP adress with PHP - .:xX[ThunderStorm]Xx:. - 04-25-2010

Nice one Risto, you are always very helpful for the beginners.


RE: [Tutorial] How to grab IP adress with PHP - Tierney - 04-25-2010

Good tutorial for being so short! Good job.


RE: [Tutorial] How to grab IP adress with PHP - ShuTdown - 04-25-2010

Nice and Usefull Tutorial Thank you Big Grin


RE: [Tutorial] How to grab IP adress with PHP - InSaNe iS BoSS - 07-28-2010

Thanks for the share

I may use this :I