Re: [PHP] IP Address

2006-10-23 Thread Richard Lynch
On Sat, October 21, 2006 6:55 pm, Fred Moses wrote: > Is there a function which returns the IP address of the requestor of > the > current page? Any question like this: "Is there a way to find out X that came in from the user" is almost always answered by adding this to the top of your code:

Re: [PHP] IP Address

2006-10-22 Thread Chris
Greg Maruszeczka wrote: On Sat, 21 Oct 2006 19:55:17 -0400 Fred Moses <[EMAIL PROTECTED]> wrote: Is there a function which returns the IP address of the requestor of the current page? -- Don't think so but there is a superglobal that contains it: $_SERVER['REMOTE_ADDR'] .. which can be

Re: [PHP] IP Address

2006-10-21 Thread Greg Maruszeczka
On Sat, 21 Oct 2006 19:55:17 -0400 Fred Moses <[EMAIL PROTECTED]> wrote: > Is there a function which returns the IP address of the requestor of the > current page? > > -- Don't think so but there is a superglobal that contains it: $_SERVER['REMOTE_ADDR'] -- PHP General Mailing List (http:/

[PHP] IP Address

2006-10-21 Thread Fred Moses
Is there a function which returns the IP address of the requestor of the current page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IP Address Filtering - Problem Continues

2006-04-10 Thread Rahul S. Johari
Ave, I'm being left with lesser and lesser choices then to try CAPCHTA. I'm gonna look into it now and see if I need to implement this now. Thanks. On 4/5/06 3:52 PM, "tedd" <[EMAIL PROTECTED]> wrote: > > Not that I promote CAPCHTA, but there are simple solutions that will > slow down some sp

Re: [PHP] IP Address Filtering - Problem Continues

2006-04-10 Thread Rahul S. Johari
Ave, I had to eliminate that option because his IP is varying drastically. There is no range, it's just drastically varying. I wouldn't be surprised if he's using an IP Spoofing script/program etcetera. On 4/5/06 11:16 AM, "Jay Blanchard" <[EMAIL PROTECTED]> wrote: > You could always block a ra

Re: [PHP] IP Address Filtering - Problem Continues

2006-04-05 Thread tedd
At 5:58 PM +0200 4/5/06, Jochem Maas wrote: Jay Blanchard wrote: [snip] The problem is, the spammer is using multiple IP Address. His IP Address changes every 6 - 8 entries. I have so far recorded 5 different IP Addresses of the spammer. Although I can create a Database and keep adding his IP Ad

Re: [PHP] IP Address Filtering - Problem Continues

2006-04-05 Thread Jochem Maas
Jay Blanchard wrote: [snip] The problem is, the spammer is using multiple IP Address. His IP Address changes every 6 - 8 entries. I have so far recorded 5 different IP Addresses of the spammer. Although I can create a Database and keep adding his IP Address to the database, and run a check from t

RE: [PHP] IP Address Filtering - Problem Continues

2006-04-05 Thread Jay Blanchard
[snip] The problem is, the spammer is using multiple IP Address. His IP Address changes every 6 - 8 entries. I have so far recorded 5 different IP Addresses of the spammer. Although I can create a Database and keep adding his IP Address to the database, and run a check from the Guestbook script to

[PHP] IP Address Filtering - Problem Continues

2006-04-05 Thread Rahul S. Johari
Ave, Unfortunately my problem persists. The reason my script was recording "NULL" as IP address was because I was using $REMOTE_ADDR. When I started using the correct syntax, i.e., $SERVER['REMOTE_ADDR'], it actually did start recording the IP Address of the spammer. The problem is, the spammer

Re: [PHP] IP Address Filtering

2006-03-30 Thread Rahul S. Johari
Ave, Curt, thanks for your response. > Is this a common guestbook, like a 3rd party tool you got and added > to the web site? If so, do they already have a solution in place > with an add-on or such. No, actually it's a script I have written myself from scratch. And unfortunately (or fortunately

Re: [PHP] IP Address Filtering

2006-03-30 Thread Barry
Rahul S. Johari wrote: Ave, I have to say I absolutely love your idea! It¹s probably a solution for my problem, at the same time, like the other guy said, freaking hilarious!!! :0) I think I¹ll probably write up a script that displays everything except records with NULL as IP for regular audien

Re: [PHP] IP Address Filtering

2006-03-30 Thread Rahul S. Johari
Ave, I have to say I absolutely love your idea! It¹s probably a solution for my problem, at the same time, like the other guy said, freaking hilarious!!! :0) I think I¹ll probably write up a script that displays everything except records with NULL as IP for regular audience... And displays all r

Re: [PHP] IP Address Filtering

2006-03-29 Thread Curt Zirzow
On Wed, Mar 29, 2006 at 02:52:39PM -0500, Rahul S. Johari wrote: > > Ave, > > I�ve run into a slight problem. We maintain a Guestbook for our company�s > website. Lately we have been getting a lot of �Spam� entries into the > Guestbook. Is this a common guestbook, like a 3rd party tool you got

Re: [PHP] IP Address Filtering

2006-03-29 Thread Joe Harman
Good thing I don't have kids! On 3/29/06, Kevin Kinsey <[EMAIL PROTECTED]> wrote: > Joe Harman wrote: > > >if you really want to mess with them.. only show the user with the > >NULL IP address all the spam posts.. .make them think that they've > >been successful > > > > > Freaking hilarious idea!!

Re: [PHP] IP Address Filtering

2006-03-29 Thread Kevin Kinsey
Joe Harman wrote: if you really want to mess with them.. only show the user with the NULL IP address all the spam posts.. .make them think that they've been successful Freaking hilarious idea!! Remind me not to let my kids play with yours. :-D Of course, there's probably not any Real Peo

Re: [PHP] IP Address Filtering

2006-03-29 Thread Joe Harman
if you really want to mess with them.. only show the user with the NULL IP address all the spam posts.. .make them think that they've been successful On 3/29/06, Rahul S. Johari <[EMAIL PROTECTED]> wrote: > > Ave, > > I¹ve run into a slight problem. We maintain a Guestbook for our company¹s > webs

RE: [PHP] IP Address Filtering

2006-03-29 Thread Jim Moseby
> I¹ve run into a slight problem. We maintain a Guestbook for > our company¹s > website. Lately we have been getting a lot of ³Spam² entries into the > Guestbook. > > I added a snippet into the PHP Script & a field in the mySQL > database to > record the IP Address of posters. However, for th

[PHP] IP Address Filtering

2006-03-29 Thread Rahul S. Johari
Ave, I¹ve run into a slight problem. We maintain a Guestbook for our company¹s website. Lately we have been getting a lot of ³Spam² entries into the Guestbook. I added a snippet into the PHP Script & a field in the mySQL database to record the IP Address of posters. However, for the SPAM posts,

Re: [PHP] IP address

2003-01-24 Thread Justin French
on 24/01/03 1:23 PM, K.C.P. van Zijl ([EMAIL PROTECTED]) wrote: > Is it possible in PHP to determine the IP address of a server which is > requesting a page from my own server? > When I use $REMOTE_ADDR, I get the wrong IP address. In that case I get > the IP address of a person who is requesting

Re: [PHP] IP address

2003-01-24 Thread Chris Shiflett
--- "K.C.P. van Zijl" <[EMAIL PROTECTED]> wrote: > Is it possible in PHP to determine the IP address > of a server which is requesting a page from my own > server? When I use $REMOTE_ADDR, I get the wrong IP > address. In that case I get the IP address of a > person who is requesting the page on th

[PHP] IP address

2003-01-24 Thread K.C.P. van Zijl
Hi all, Is it possible in PHP to determine the IP address of a server which is requesting a page from my own server? When I use $REMOTE_ADDR, I get the wrong IP address. In that case I get the IP address of a person who is requesting the page on that other server. Hopefully my question i

RE: [PHP] Ip address as 32bit int?

2002-11-22 Thread Mark Charette
> From: Noodle Snacks [mailto:[EMAIL PROTECTED]] > the reason I ask is because it is alot more efficient space wise > in a db to > be storing a 32bit number rather that a char or varchar field. While it is more efficient space-wise (4 bytes vs. 12 bytes), the price of the additional disk storage

Re: [PHP] Ip address as 32bit int?

2002-11-22 Thread Joakim Andersson
In MySQL (and others?) you can use these two functions: INET_NTOA(expr) INET_ATON(expr) Regards Joakim - Original Message - From: "Noodle Snacks" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 22, 2002 10:13 AM Subject: [PHP] Ip address as 3

[PHP] Ip address as 32bit int?

2002-11-22 Thread Noodle Snacks
Is it easy enough to change a formated IP addy (eg 192.168.0.1) to the 32bit unsigned int that computers use? the reason I ask is because it is alot more efficient space wise in a db to be storing a 32bit number rather that a char or varchar field. Or am I going to run into trouble because all in

Re: [PHP] IP address from which country

2002-01-09 Thread Eugene Lee
On Wed, Jan 09, 2002 at 11:33:46AM +0200, Dimitris Kossikidis wrote: : : I 'm not sure, but i beleive you can get visitor's country from Apache 's : Varialble $HTTP_ACCEPT_LANGUAGE. For further information read "Predefined : Variables" in the manual. This works assuming the browser itself sends

Re: [PHP] IP address from which country

2002-01-09 Thread Dimitris Kossikidis
I 'm not sure, but i beleive you can get visitor's country from Apache 's Varialble $HTTP_ACCEPT_LANGUAGE. For further information read "Predefined Variables" in the manual. Hope it works!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [PHP] IP address from which country

2002-01-09 Thread Jon Farmer
>No such table, the best you can do is look at their hostname and parse the last part ie .co.uk or .com... And >then u can try and figure where they are from that Err... Wrong. You could host a .co.uk in the US or any other country for that matter! What you need to do is find the IP do a RIP

RE: [PHP] IP address from which country

2002-01-08 Thread Jason Murray
> Thank you Jason ,I will check the Digital Envoy to get more > information, have you got the website address of it? www.google.com ... "digital envoy" ... "I'm feeling lucky" :) ... or just www.digitalenvoy.net. Search engines are fun :) -- Jason Murray [EMAIL PROTECTED] Web Developer, Melb

re: [PHP] IP address from which country

2002-01-08 Thread Zhang, Leon (STHK/Zh)
CTED] Ö÷Ìâ: RE: [PHP] IP address from which country > Thank you Andrew,but in China mainland ,I saw many websites can even tells > the province information which the user come from and I think in USA the > State information can also be gotten from the visitor's ip address.BTW,in >

RE: [PHP] IP address from which country

2002-01-08 Thread Jason Murray
> Thank you Andrew,but in China mainland ,I saw many websites can even tells > the province information which the user come from and I think in USA the > State information can also be gotten from the visitor's ip address.BTW,in > PHP what we can get is just the ip address of the user how can we ge

re: [PHP] IP address from which country

2002-01-08 Thread Zhang, Leon (STHK/Zh)
t the host name ?Anything missed here? Regards Leon -ԭʼÓʼþ- ·¢¼þÈË: Andrew Brampton [mailto:[EMAIL PROTECTED]] ·¢ËÍʱ¼ä: 09 January, 2002 9:46 ÊÕ¼þÈË: Zhang, Leon (STHK/Zh) ³­ËÍ: [EMAIL PROTECTED] Ö÷Ìâ: Re: [PHP] IP address from which country No such table, the best you can do is lo

Re: [PHP] IP address from which country

2002-01-08 Thread Andrew Brampton
:03 AM Subject: [PHP] IP address from which country Hi, In php ,we can easily get the ip address of a connected computer ,but I always see on the web that there are some pages can tell you where you are from,so there must be a complete table show the relation of the ip address and country

[PHP] IP address from which country

2002-01-08 Thread Zhang, Leon (STHK/Zh)
Hi,  In php ,we can easily get the ip address of a connected computer ,but I always see on the web that there are some pages can tell you where you are from,so there must be a complete table show the relation of the ip address and country or region ,where can I find this .   Thanks . Leon  

Re: [PHP] IP Address Converted to Computer Name

2001-11-19 Thread David Robley
into my mail() script. Sorry for the > trouble. > > Ben > > -Original Message- > From: David Robley [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 19, 2001 4:29 PM > To: Ben Clumeck; [EMAIL PROTECTED] > Subject: Re: [PHP] IP Address Converted to Computer Na

RE: [PHP] IP Address Converted to Computer Name

2001-11-19 Thread Ben Clumeck
PM To: Ben Clumeck; [EMAIL PROTECTED] Subject: Re: [PHP] IP Address Converted to Computer Name On Tue, 20 Nov 2001 04:08, Ben Clumeck wrote: > I am trying to convert an ip address to a computer name. Then I am > putting it into the mail() script. However, when I do this it come up > bla

Re: [PHP] IP Address Converted to Computer Name

2001-11-19 Thread David Robley
On Tue, 20 Nov 2001 04:08, Ben Clumeck wrote: > I am trying to convert an ip address to a computer name. Then I am > putting it into the mail() script. However, when I do this it come up > blank. I am putting $r_hostname in the mail() script. Can anyone tell > me why its not working? The scri

[PHP] IP Address Converted to Computer Name

2001-11-19 Thread Ben Clumeck
I am trying to convert an ip address to a computer name. Then I am putting it into the mail() script. However, when I do this it come up blank. I am putting $r_hostname in the mail() script. Can anyone tell me why its not working? The script I am using is: Thanks, Ben -- PHP General Mai

Re: [PHP] IP Address Variable

2001-11-14 Thread John Taylor-Johnston
It may not work, if you are running Windows PHP on your localhost at home. I'll bet you are trying to log getenv('REMOTE_HOST'). Been there done that. I use http://www.indigostar.com/microweb.htm to create a localhost to develop and debug and then upload to the server. (I pay for modem time.) I re

RE: [PHP] IP Address Variable

2001-11-14 Thread Ben Clumeck
EMAIL PROTECTED] Subject: Re: [PHP] IP Address Variable check this out http://www.php.net/manual/en/function.gethostbyaddr.php jim - Original Message - From: "Ben Clumeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 2:48 PM Subject: [PHP

Re: [PHP] IP Address Variable

2001-11-14 Thread Jim Lucas
check this out http://www.php.net/manual/en/function.gethostbyaddr.php jim - Original Message - From: "Ben Clumeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 2:48 PM Subject: [PHP] IP Address Variable > I currently log ip a

[PHP] IP Address Variable

2001-11-14 Thread Ben Clumeck
I currently log ip address that reach my site. However, I want to be able to log both the ip address and remote name. Can anyone help? Thanks, Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [PHP] Ip Address to binary

2001-09-12 Thread Robert Covell
ECTED]] Sent: Wednesday, September 12, 2001 4:30 PM To: PHP Users Subject: [PHP] Ip Address to binary does anyone know of a way to convert an IP address to Binary using PHP? My plan is to store the IP address in MySQL so that I can manage a mass amount of IP subnets, and easily make sure I&

Re: [PHP] Ip Address to binary

2001-09-12 Thread Jason Bell
Sent: Wednesday, September 12, 2001 2:29 PM Subject: [PHP] Ip Address to binary does anyone know of a way to convert an IP address to Binary using PHP? My plan is to store the IP address in MySQL so that I can manage a mass amount of IP subnets, and easily make sure I'm not assigning duplicate

[PHP] Ip Address to binary

2001-09-12 Thread Jason Bell
does anyone know of a way to convert an IP address to Binary using PHP? My plan is to store the IP address in MySQL so that I can manage a mass amount of IP subnets, and easily make sure I'm not assigning duplicate subnets. the best way I can think of is to use binary. any other ideas, though

RE: [PHP] IP Address

2001-08-07 Thread Kurth Bemis
At 09:29 AM 8/7/2001, Joseph Bannon wrote: This is the problem with todays "web programmers" and with PHP. One - With the explosion in the ease of HTML and related technologies EVERYBODY is a designer/programmerlets face itsome have it some don't. If you think that blinking text is

RE: [PHP] IP Address

2001-08-07 Thread B. van Ouwerkerk
>Just because you're having a bad day doesn't mean I should. Can you just >tell me what it is? I don't have those posts. You don't need those posts to check the archive. You should find a link on the page where you subscribed. Checking the archive before you post would help to get less traffic

Re: [PHP] IP Address

2001-08-07 Thread Renze Munnik
> > =[ Get remote IP ]= > > if(getenv(HTTP_X_FORWARDED_FOR)) > { > $ip=getenv(HTTP_X_FORWARDED_FOR); > } > else > { > $ip=getenv(REMOTE_ADDR); > } > $host = gethostbyaddr($ip); > > === > Oh... btw... I just gave a real look at that piece of code. You might

Re: [PHP] IP Address

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 08:29:34AM -0500, Joseph Bannon wrote: > Just because you're having a bad day doesn't mean I should. Can you just > tell me what it is? I don't have those posts. > > J Wow... I believe you're the one having the bad day. Anyway, here's the result of the thread... It's the c

RE: [PHP] IP Address

2001-08-07 Thread Joseph Bannon
Just because you're having a bad day doesn't mean I should. Can you just tell me what it is? I don't have those posts. J -Original Message- On Tue, Aug 07, 2001 at 08:11:52AM -0500, Joseph Bannon wrote: > What is the php code to get a visitor's IP address? > > Thanks, > Joseph You mi

Re: [PHP] IP Address

2001-08-07 Thread Renze Munnik
On Tue, Aug 07, 2001 at 08:11:52AM -0500, Joseph Bannon wrote: > What is the php code to get a visitor's IP address? > > Thanks, > Joseph You might want to consider reading some of the other posts for a change. There's an interesting thread on this list today. It's about the exact same question

[PHP] IP Address

2001-08-07 Thread Joseph Bannon
What is the php code to get a visitor's IP address? Thanks, Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] IP address management tool

2001-05-08 Thread Richard Ellerbrock
I am looking for a tool (preferably database driven, written in php) that will allow me to do IP address management of IP subnets on our network. The best I could find was a project called IPfree on Sourceforge, but nothing is happening over there. I am considering writing my own, but do not wa

Re: [PHP] IP address enconding

2001-04-19 Thread Don Read
On 19-Apr-01 elias wrote: > No! I can encode IP address to an Integer: > 192.168.0.1 consider as: a.b.c.d > and now the formula goes: > a shl 24 + b shl 16 + c shl 8 + d > > but i was looking for something ready made > PHP3 (returns a float, not an integer): function inet_aton($a) { $

Re: [PHP] IP address enconding

2001-04-19 Thread elias
thanks for the hint! ""Jason Brooke"" <[EMAIL PROTECTED]> wrote in message 02a801c0c8bd$6f5528c0$[EMAIL PROTECTED]">news:02a801c0c8bd$6f5528c0$[EMAIL PROTECTED]... > > http://www.php.net/manual/en/function.ip2long.php > > > > > No! I can encode IP address to an Integer: > > 192.168.0.1 consider a

Re: [PHP] IP address enconding

2001-04-19 Thread Jason Brooke
http://www.php.net/manual/en/function.ip2long.php > No! I can encode IP address to an Integer: > 192.168.0.1 consider as: a.b.c.d > and now the formula goes: > a shl 24 + b shl 16 + c shl 8 + d > > but i was looking for something ready made > > -elias > http://www.kameelah.org/eassoft

Re: [PHP] IP address enconding

2001-04-19 Thread elias
No! I can encode IP address to an Integer: 192.168.0.1 consider as: a.b.c.d and now the formula goes: a shl 24 + b shl 16 + c shl 8 + d but i was looking for something ready made -elias http://www.kameelah.org/eassoft ""Knut H. Hassel Nielsen"" <[EMAIL PROTECTED]> wrote in message [EMAIL PR

Re: [PHP] IP address enconding

2001-04-19 Thread Knut H. Hassel Nielsen
On Thu, 19 Apr 2001, elias wrote: > Hello. > > How can i get the IP address of the user who's browsing my current script? > how can i do it via JavaScript and PHP please. $REMOTE_ADDR should do the trick (use 'phpinfo()' to see for yourself) > And if i got an IP address such 192.168.0.2 > i bel

[PHP] IP address enconding

2001-04-19 Thread elias
Hello. How can i get the IP address of the user who's browsing my current script? how can i do it via JavaScript and PHP please. And if i got an IP address such 192.168.0.2 i believe it will be returned as a stringIs there is a function to encode it to an Integer and the decode it back to a