473,414 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Have web page automatically email me

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
10 2158
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
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
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
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
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
>>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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
7
by: Willem | last post by:
Can someone tell me how I can get a page(any page) on the Internet to refresh automatically every 5 minutes. I was thinking along the lines of having a HTML file on my C-drive with JavaScript to do...
2
by: Thang Nguyen | last post by:
Hi, my page contains an applet. When I click on a link on the page, the applet will be launched.Now I need my page can be automatically closed when I close my applet.I can call the script from my...
37
by: ajay | last post by:
How to make a web page getting refreshed after a given time interval automatically. HTML Code plz. Tx Ajay
21
by: Steel | last post by:
Hi at all, I have a very long html page with many photo. Therefore the best to print this page is to print the some page as PDF. Therefore I maked a PDF file like my page to print best. I'ld want...
3
by: Irfan Akram | last post by:
Hi People, Wondering whether there is a way of being transferred to another aspx page, after waiting for a couple or more seconds, rather than being transferred immediately. For example...
2
by: Martin Eyles | last post by:
I would like to embed a windows controls or smart client controls in a web page, in a similar way to which a java applet or a flash applet or an active x control is embedded. I read something...
13
by: bmurphy | last post by:
Last week after much searching, I found the answer to my problem in this newsgroup. I can't find the thread from which I got my solution, but I wanted to report back what worked. When the site...
7
by: canajien | last post by:
How can I get a php page to automatically send all the contents in an email when it is generated? I managed to hack together a script that sends an email, but it will only send the 1st record...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.