Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] How to grab IP adress with PHP
#11
(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.
Reply
#12
(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
If you are willing to join SF Webmasters.
Reply
#13
(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
Reply
#14
Looks good. Great for the newbies.
Reply
#15
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.
Reply
#16
Nice guide mate. Big Grin Might come in handy.
Reply
#17
Nice one Risto, you are always very helpful for the beginners.
Reply
#18
Good tutorial for being so short! Good job.
[Image: donation_drive_sig.png]
Reply
#19
Nice and Usefull Tutorial Thank you Big Grin
[Image: ShuTdown.png]
Reply
#20
Thanks for the share

I may use this :I
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 956 07-27-2020, 11:26 PM
Last Post: tk-hassan
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,705 10-10-2011, 01:00 PM
Last Post: Greyersting
  Tim's PHP 101 tutorial Tim 22 6,232 10-19-2009, 02:12 PM
Last Post: Tim
  PHP mysql Login Tutorial By MAcar V1.0 MAcar 8 4,053 10-08-2009, 04:57 PM
Last Post: MAcar
  PHP site backup tutorial andrewjs18 6 2,277 10-07-2009, 11:27 PM
Last Post: andrewjs18

Forum Jump:


Users browsing this thread: 3 Guest(s)