473,834 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2184
On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netw rote:
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.netw rote:
>Is there a way, with javascript, that if someones visits a webpage that I
automaticall y 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.javas cript 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.netw rote:
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.netw rote:
Is there a way, with javascript, that if someones visits a webpage that I
automaticall y 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.javas cript 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******** ************@te lcove.net...
Peter Michaux said the following on 2/11/2007 8:31 PM:
>On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netw rote:
>>Is there a way, with javascript, that if someones visits a webpage that
I
automatical ly 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.javas cript 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 mqnqbqvbqvqqlkh joerriorr.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**********@g mail.comwrote in message
news:11******** *************@a 75g2000cwd.goog legroups.com...
On Feb 11, 5:22 pm, "Sam Polos" <s...@home.netw rote:
>Is there a way, with javascript, that if someones visits a webpage that I
automaticall y 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.netw rote:
Is there a way, with javascript, that if someones visits a webpage that I
automatical ly 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.javas cript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Feb 12 '07 #9
In comp.lang.javas cript message <ok************ ***@newsread4.n ews.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.demo n.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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3955
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 version of this document can be found at: http://prdownloads.sourceforge.net/souptonuts/README_mysql.txt?download
7
40217
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 so. It should be possible, Right? I don't know much about JavaScript. Thanks for the help.
2
7649
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 applet to do this, but the poor thing is each time the script is called, IE will prompt to ask "the page you are viewing try to close the window ..". Is there any possible way for the browser not to prompt like that. I only know that a closing a...
37
12759
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
5744
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 that when the user press the print button in the browser , it print automatically the pdf file and not the html page. To do that I insert at the top of my page: <link media="print" rel="alternate" href="printthepage.pdf"> But it do not work and...
3
1257
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 displaying a status message and then being transferred after 4-5 seconds. Will wait for valuable feedback. Thanks,
2
1430
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 somewhere about compiling the control to a dll, and then putting this dll in the web server directory, and setting the classid to the url to this. Is there a way of doing this all automatically as part of one project, or one solution? Also, is...
13
3331
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 visitor fills out the form and submits it, this calls a rather ordinary asp script like formmail.asp that sends the emails and displays a "thank you" web page. At the very end of my "thank you" web page I placed the following: <script...
7
1608
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 returned and I would like it to send all the records that are on the page when it is loaded. <?php $con = mysql_connect("localhost","user","pass"); if (!$con)
0
9649
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10799
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10515
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9338
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5629
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5799
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3985
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3084
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.