hello,
I'm really not an expert in javascript, so i ask if anyone over here
is able to make a small script which does the following:
-a visitor click a link to my page
-he can look this page as long as he wants
-he clicks the link to my page a second time, still ok
-he tries it a third time, and then he should be redirected to an
other page.
Is this possible. Maybe need a cookie? And i really don;t know how to
work with cookies.
Thank you so much already! Bas 7 1218
In article <4a**************************@posting.google.com >, b_***@hotmail.com enlightened us with... hello, I'm really not an expert in javascript, so i ask if anyone over here is able to make a small script which does the following:
-a visitor click a link to my page -he can look this page as long as he wants -he clicks the link to my page a second time, still ok -he tries it a third time, and then he should be redirected to an other page.
Is this possible. Maybe need a cookie? And i really don;t know how to work with cookies.
Sure. When I clear the cookie, I can revisit again. Cool. I clear my
cookies daily.
IOW, you really can't do this without some server-side stuff and an IP
addy. And even that won't work all the time, since people use proxy
servers and stuff.
You want to limit visits, you need to make them have a REAL username and
password (Database and secure server-side) and you update the DB with
each visit, etc.
--
--
~kaeli~
Murphy's Law #2030: If at first you don't succeed, destroy
all evidence that you tried. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
kaeli <ti******@NOSPAM.comcast.net> wrote in message news:<MP************************@nntp.lucent.com>. .. In article <4a**************************@posting.google.com >, b_***@hotmail.com enlightened us with... hello, I'm really not an expert in javascript, so i ask if anyone over here is able to make a small script which does the following:
-a visitor click a link to my page -he can look this page as long as he wants -he clicks the link to my page a second time, still ok -he tries it a third time, and then he should be redirected to an other page.
Is this possible. Maybe need a cookie? And i really don;t know how to work with cookies.
Sure. When I clear the cookie, I can revisit again. Cool. I clear my cookies daily.
IOW, you really can't do this without some server-side stuff and an IP addy. And even that won't work all the time, since people use proxy servers and stuff. You want to limit visits, you need to make them have a REAL username and password (Database and secure server-side) and you update the DB with each visit, etc.
--
how can i do this with an serverside script as well? It's not really a
problem that it's not in 100% of the cases working.
kaeli <ti******@NOSPAM.comcast.net> wrote in message news:<MP************************@nntp.lucent.com>. .. In article <4a**************************@posting.google.com >, b_***@hotmail.com enlightened us with... hello, I'm really not an expert in javascript, so i ask if anyone over here is able to make a small script which does the following:
-a visitor click a link to my page -he can look this page as long as he wants -he clicks the link to my page a second time, still ok -he tries it a third time, and then he should be redirected to an other page.
Is this possible. Maybe need a cookie? And i really don;t know how to work with cookies.
Sure. When I clear the cookie, I can revisit again. Cool. I clear my cookies daily.
IOW, you really can't do this without some server-side stuff and an IP addy. And even that won't work all the time, since people use proxy servers and stuff. You want to limit visits, you need to make them have a REAL username and password (Database and secure server-side) and you update the DB with each visit, etc.
--
how can i do this with an serverside script as well? It's not really a
problem that it's not in 100% of the cases working.
"bb" <b_***@hotmail.com> schrieb im Newsbeitrag
news:4a**************************@posting.google.c om... kaeli <ti******@NOSPAM.comcast.net> wrote in message
news:<MP************************@nntp.lucent.com>. .. In article <4a**************************@posting.google.com >, b_***@hotmail.com enlightened us with... hello, I'm really not an expert in javascript, so i ask if anyone over here is able to make a small script which does the following:
-a visitor click a link to my page -he can look this page as long as he wants -he clicks the link to my page a second time, still ok -he tries it a third time, and then he should be redirected to an other page.
Is this possible. Maybe need a cookie? And i really don;t know how to work with cookies.
Sure. When I clear the cookie, I can revisit again. Cool. I clear my cookies daily.
IOW, you really can't do this without some server-side stuff and an IP addy. And even that won't work all the time, since people use proxy servers and stuff. You want to limit visits, you need to make them have a REAL username and password (Database and secure server-side) and you update the DB with each visit, etc.
--
how can i do this with an serverside script as well? It's not really a problem that it's not in 100% of the cases working.
You have to get the information what serverside script languages are running
on your server and then ask in the related newsgroups.
--
Markus
In article <4a**************************@posting.google.com >, b_***@hotmail.com enlightened us with...
how can i do this with an serverside script as well? It's not really a problem that it's not in 100% of the cases working.
Depends. Check with your host on what languages they support. Get a
database or at the least a flat file.
I could help you with ASP, JSP, or PHP. I suck at Perl (CGI), so you'd
need to ask in a Perl group. Unfortunately, most hosts only support Perl
(free). More and more are doing PHP, though, so if they have that, use
it.
Also, find out if your server uses Apache as the web server. It's
easiest to do file protection with.
If your server is Microsoft, they probably use IIS and have ASP
available. Then you'd have to talk to the admin to protect your stuff
unless your server has a tool for it (many do).
--
--
~kaeli~
Bakers trade bread recipes on a knead-to-know basis. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
kaeli wrote: In article <4a**************************@posting.google.com >, b_***@hotmail.com enlightened us with... hello, I'm really not an expert in javascript, so i ask if anyone over here is able to make a small script which does the following:
-a visitor click a link to my page -he can look this page as long as he wants -he clicks the link to my page a second time, still ok -he tries it a third time, and then he should be redirected to an other page. [...]
[...] IOW, you really can't do this without some server-side stuff and an IP addy. [...]
Again: IP(v4) addresses are usually either dynamic or are static and refer
to a proxy server, so evaluating them does not help in such cases.
BTW: Your "From:" header violates Internet standards since there is no valid
domain NOSPAM.comcast.net within DNS, according to the comcast.net primary
MX. So ti******@NOSPAM.comcast.net cannot be a mailbox since "A mailbox
receives mail."
PointedEars
JRS: In article <40**************@PointedEars.de>, seen in
news:comp.lang.javascript, Thomas 'PointedEars' Lahn
<Po*********@web.de> posted at Sat, 1 May 2004 07:28:30 : BTW: Your "From:" header violates Internet standards since there is no valid domain NOSPAM.comcast.net within DNS, according to the comcast.net primary MX. So ti******@NOSPAM.comcast.net cannot be a mailbox since "A mailbox receives mail."
Your manners violate common decency.
You have been repeatedly told that quoting elderly standards
inappropriate to the present situation is arrogantly non-constructive.
When can we expect you to show signs of imminent adulthood?
--
© John Stockton, Surrey, UK. ??*@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ed |
last post by:
I first noticed this in my own app. Images would show up missing
randomly on IE 6.0.2800.1106 on Windows 2000 server.
I then was able to repro this problem on Microsoft's website!!! The page I...
|
by: TomCat |
last post by:
Hello,
can anyone send me a link or even some sample of script that counts visits
to a website ?
Thanks,
TomCat
|
by: xerj |
last post by:
....the page delivered is always refreshed?
Or does the browser display what's in the cache?
Thanks in advance.
|
by: scottyman |
last post by:
I can't make this script work properly. I've gone as far as I can with
it and the rest is out of my ability. I can do some html editing but
I'm lost in the Java world. The script at the bottom of...
|
by: zhanye815 |
last post by:
This problem is this:a page is made up of frameset, but i can't visit
the iframe(inline frame) of the frame in the framset.just like the
frameset have 3 frames,the third frame have a iframe(inline...
|
by: Nitin Verma |
last post by:
Hi all,
In my App I am using Forms Authentication. I have a Forget_Password
page which has been excluded from Forms Authentication. I have made an
entry in Web.Config. The code is
<location...
|
by: Amit |
last post by:
I have a master page and a content page but the stylesheet isnt getting
applied like how it looks in visual studio design view.
The master page is defined like this:
<%@ Master Language="VB"...
|
by: frizzle |
last post by:
Hi there,
I need a function to prevent a page from being loaded too often too
fast.
So say, one is only allowed to refresh a single page 5 times in 10
seconds, or 10 times in 5 seconds (or...
|
by: josecruz |
last post by:
I am deveoloping a database where I will record a Pet general information. Then I want to monitor every visit and other variables. I have created the tables Pet_info, Pet_Visit, Pet_medication etc. ...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |