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:
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
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:/
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
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
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
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
[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
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
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
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
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
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!!
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
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
> 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
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
--- "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
> 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
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 32bit int?
Is it easy enou
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
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
>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
> 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
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
>
> 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
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
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
Andrew
- Original Message -
From: Zhang, Leon (STHK/Zh)
To: [EMAIL PROTECTED]
Sent: Wednesday, January 09, 2002 1:03
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
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
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
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
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
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 address that reach my site.
You could use MySql's built in functions:
INET_NTOA()
INET_ATON()
Sincerely,
Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952
-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]]
I want to add I have seen bindec() , and I think it's a cruel cruel joke
for it to only work with 31 bits, given that ip4 addresses are 32 bits. :}
- Original Message -
From: "Jason Bell" <[EMAIL PROTECTED]>
To: "PHP Users" <[EMAIL PROTECTED]>
Sent: Wednesday, September 12, 2001 2:29
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
>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
>
> =[ 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
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
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
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
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) {
$
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
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
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
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
47 matches
Mail list logo