By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,016 Members | 2,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,016 IT Pros & Developers. It's quick & easy.

Have web page automatically email me

P: n/a
Is there a way, with javascript, that if someones visits a webpage that I
automatically get an email with information about the visitor? Info such as
IP, referrer, etc. Thanks.

Feb 12 '07 #1
Share this Question
Share on Google+
10 Replies


P: n/a
On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netwrote:
Is there a way, with javascript, that if someones visits a webpage that I
automatically get an email with information about the visitor? Info such as
IP, referrer, etc. Thanks.
The server logs probably have all this information in it already. If
not it could be made to log this info.

You could have the server send you an email automatically with each
new ip address that visits your site.

If you need to have the web page involved, the JavaScript in the web
page can make and XmlHTTPRequest (Ajax) to the server. The server can
then send the email to you. Seems like a convoluted thing to do.

Peter

Feb 12 '07 #2

P: n/a
Peter Michaux said the following on 2/11/2007 8:31 PM:
On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netwrote:
>Is there a way, with javascript, that if someones visits a webpage that I
automatically get an email with information about the visitor? Info such as
IP, referrer, etc. Thanks.

The server logs probably have all this information in it already. If
not it could be made to log this info.
And it is the place it should happen.
You could have the server send you an email automatically with each
new ip address that visits your site.
Along with the note that the IP Address is irrelevant :)
If you need to have the web page involved, the JavaScript in the web
page can make and XmlHTTPRequest (Ajax) to the server. The server can
then send the email to you. Seems like a convoluted thing to do.
It is simpler than that. Simply set the source of an image element to
point to the server side script and have that server side script send
the email.

<URL: http://jibbering.com/faq/index.html#FAQ4_34>

Now, write me out 10,000 sentences saying "I will study the FAQ until it
pours out my ears while I sleep" as punishment :-)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 12 '07 #3

P: n/a
On Feb 11, 5:37 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Peter Michaux said the following on 2/11/2007 8:31 PM:
On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netwrote:
Is there a way, with javascript, that if someones visits a webpage that I
automatically get an email with information about the visitor? Info such as
IP, referrer, etc. Thanks.
The server logs probably have all this information in it already. If
not it could be made to log this info.

And it is the place it should happen.
You could have the server send you an email automatically with each
new ip address that visits your site.

Along with the note that the IP Address is irrelevant :)
If you need to have the web page involved, the JavaScript in the web
page can make and XmlHTTPRequest (Ajax) to the server. The server can
then send the email to you. Seems like a convoluted thing to do.

It is simpler than that. Simply set the source of an image element to
point to the server side script and have that server side script send
the email.

<URL:http://jibbering.com/faq/index.html#FAQ4_34>

Now, write me out 10,000 sentences saying "I will study the FAQ until it
pours out my ears while I sleep" as punishment :-)

I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
I will study the FAQ until it pours out my ears while I sleep.
....
I will study the FAQ until it pours out my ears while I sleep.

Peter

Feb 12 '07 #4

P: n/a
Peter Michaux said the following on 2/11/2007 11:23 PM:
On Feb 11, 5:37 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
>Peter Michaux said the following on 2/11/2007 8:31 PM:
>>On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netwrote:
Is there a way, with javascript, that if someones visits a webpage that I
automatically get an email with information about the visitor? Info such as
IP, referrer, etc. Thanks.
The server logs probably have all this information in it already. If
not it could be made to log this info.
And it is the place it should happen.
>>You could have the server send you an email automatically with each
new ip address that visits your site.
Along with the note that the IP Address is irrelevant :)
>>If you need to have the web page involved, the JavaScript in the web
page can make and XmlHTTPRequest (Ajax) to the server. The server can
then send the email to you. Seems like a convoluted thing to do.
It is simpler than that. Simply set the source of an image element to
point to the server side script and have that server side script send
the email.

<URL:http://jibbering.com/faq/index.html#FAQ4_34>

Now, write me out 10,000 sentences saying "I will study the FAQ until it
pours out my ears while I sleep" as punishment :-)


I will study the FAQ until it pours out my ears while I sleep.
<snip>

I wanted them numbered and in cursive :)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 12 '07 #5

P: n/a
Randy, thanks for the reply and there are some nice facts in the FAQ. First
one I've ever read (actually, only the most asked programming questions).
Without trying to be arrogant or a smart ass, does anyone ever read those
things? Or even know that they exist? How would they (except after the fact
(as in my case))? :-)
"Randy Webb" <Hi************@aol.comwrote in message
news:MM********************@telcove.net...
Peter Michaux said the following on 2/11/2007 8:31 PM:
>On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netwrote:
>>Is there a way, with javascript, that if someones visits a webpage that
I
automatically get an email with information about the visitor? Info such
as
IP, referrer, etc. Thanks.

The server logs probably have all this information in it already. If
not it could be made to log this info.

And it is the place it should happen.
>You could have the server send you an email automatically with each
new ip address that visits your site.

Along with the note that the IP Address is irrelevant :)
>If you need to have the web page involved, the JavaScript in the web
page can make and XmlHTTPRequest (Ajax) to the server. The server can
then send the email to you. Seems like a convoluted thing to do.

It is simpler than that. Simply set the source of an image element to
point to the server side script and have that server side script send the
email.

<URL: http://jibbering.com/faq/index.html#FAQ4_34>

Now, write me out 10,000 sentences saying "I will study the FAQ until it
pours out my ears while I sleep" as punishment :-)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/
Feb 12 '07 #6

P: n/a
>>Seems like a convoluted thing to do.

Thanks for the reply, Peter. I actually have a CGI file on my server that
does this. I was wanting to see how it would be done in javascript. I have
problems with people downloading my website so I made an off the wall page,
such as mqnqbqvbqvqqlkhjoerriorr.htm with no links to it. No way anyone
could guess the name of the page. When I get an email that someone has
downloaded this page I know that a website ripper is being used. And I take
appropriate action from there. At times, I've used modules such as
'speedlimit' and others but they don't work that well. Or didn't use to, I
haven't tried them in awhile.

Sorry for the email. I hit 'reply' instead of 'reply group.'
"Peter Michaux" <pe**********@gmail.comwrote in message
news:11*********************@a75g2000cwd.googlegro ups.com...
On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netwrote:
>Is there a way, with javascript, that if someones visits a webpage that I
automatically get an email with information about the visitor? Info such
as
IP, referrer, etc. Thanks.

The server logs probably have all this information in it already. If
not it could be made to log this info.

You could have the server send you an email automatically with each
new ip address that visits your site.

If you need to have the web page involved, the JavaScript in the web
page can make and XmlHTTPRequest (Ajax) to the server. The server can
then send the email to you. Seems like a convoluted thing to do.

Peter
Feb 12 '07 #7

P: n/a
On Feb 12, 5:29 am, Randy Webb <HikksNotAtH...@aol.comwrote:
Peter Michaux said the following on 2/11/2007 11:23 PM:


On Feb 11, 5:37 pm, Randy Webb <HikksNotAtH...@aol.comwrote:
Peter Michaux said the following on 2/11/2007 8:31 PM:
>On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netwrote:
Is there a way, with javascript, that if someones visits a webpage that I
automatically get an email with information about the visitor? Info such as
IP, referrer, etc. Thanks.
The server logs probably have all this information in it already. If
not it could be made to log this info.
And it is the place it should happen.
>You could have the server send you an email automatically with each
new ip address that visits your site.
Along with the note that the IP Address is irrelevant :)
>If you need to have the web page involved, the JavaScript in the web
page can make and XmlHTTPRequest (Ajax) to the server. The server can
then send the email to you. Seems like a convoluted thing to do.
It is simpler than that. Simply set the source of an image element to
point to the server side script and have that server side script send
the email.
<URL:http://jibbering.com/faq/index.html#FAQ4_34>
Now, write me out 10,000 sentences saying "I will study the FAQ until it
pours out my ears while I sleep" as punishment :-)
I will study the FAQ until it pours out my ears while I sleep.

<snip>

I wanted them numbered and in cursive :)
You're browser doesn't support CSS4?

Peter

Feb 12 '07 #8

P: n/a
Sam Polos said the following on 2/12/2007 8:54 AM:
Randy, thanks for the reply and there are some nice facts in the FAQ.
Did you read Section 2 about top posting?
First one I've ever read (actually, only the most asked programming questions).
Without trying to be arrogant or a smart ass, does anyone ever read those
things?
Sometimes, I doubt very seriously that anybody reads it very often other
than regulars here.
Or even know that they exist?
A Google search for Javascript FAQ turns up this groups FAQ as the
number 3 hit so people would know they would exist if they hunted a
little bit. But, most people simply say "I don't have time to be
bothered, I will ask - it's quicker". Not saying that you did that, but
it seems to be a trend.
How would they (except after the fact (as in my case))? :-)
It is in my signature on every post I make to this group :)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 12 '07 #9

P: n/a
In comp.lang.javascript message <ok***************@newsread4.news.pas.ea
rthlink.net>, Mon, 12 Feb 2007 13:54:28, Sam Polos <sa*@home.net>
posted:
>Randy, thanks for the reply and there are some nice facts in the FAQ. First
one I've ever read (actually, only the most asked programming questions).
Without trying to be arrogant or a smart ass, does anyone ever read those
things? Or even know that they exist? How would they (except after the fact
(as in my case))? :-)
If you have obtained your Internet and/or News service through a
competent organisation considerate of its users and of others, then you
would have been told about FAQs in general and Usenet FAQs in
particular.

But I see that you are posting through an organisation that puts PST in
headers, and that an anti-virus system using FFF is used. So you
haven't.

Of course, those with the sagacity to look through the subject lines of
recent articles in the group before posting would have seen that, in
them, "FAQ" occurs *at least* once per day, often with subsequent
discussion. So the meaning of "FAQ" should be of interest. Reading any
non-followup articles with "FAQ" in the subject should provide a
sufficient clue.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)
Feb 13 '07 #10

P: n/a
Dr J R Stockton said the following on 2/13/2007 8:33 AM:
In comp.lang.javascript message <ok***************@newsread4.news.pas.ea
rthlink.net>, Mon, 12 Feb 2007 13:54:28, Sam Polos <sa*@home.net>
posted:
>Randy, thanks for the reply and there are some nice facts in the FAQ. First
one I've ever read (actually, only the most asked programming questions).
Without trying to be arrogant or a smart ass, does anyone ever read those
things? Or even know that they exist? How would they (except after the fact
(as in my case))? :-)

If you have obtained your Internet and/or News service through a
competent organisation considerate of its users and of others, then you
would have been told about FAQs in general and Usenet FAQs in
particular.
Can you tell me where on http://www.giganews.com/ that it mentions
Usenet group FAQ's? Or is your claim going to be that Giganews isn't a
"competent organization considerate"? That is where *my* access comes
from and it says nothing - in the first 2 or 3 pages - about Usenet
and/or FAQs for Usenet. In fact, the Giganews FAQ says *nothing* about
group FAQs.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 15 '07 #11

This discussion thread is closed

Replies have been disabled for this discussion.