Support Forums

Full Version: [Tutorial] How to grab IP adress with PHP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(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.
(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
(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
Looks good. Great for the newbies.
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.
Nice guide mate. Big Grin Might come in handy.
Nice one Risto, you are always very helpful for the beginners.
Good tutorial for being so short! Good job.
Nice and Usefull Tutorial Thank you Big Grin
Thanks for the share

I may use this :I
Pages: 1 2 3