Limiting No. of Left Clicks on A Web Page
am 28.06.2007 14:03:33 von arjunCan anyone provide me with codes which will help me limit users from
left/right clicking more than 2 times per day (or withing a time
frame).
Can anyone provide me with codes which will help me limit users from
left/right clicking more than 2 times per day (or withing a time
frame).
Arjun schreef:
> Can anyone provide me with codes which will help me limit users from
> left/right clicking more than 2 times per day (or withing a time
> frame).
>
If you first provide us with a reason for wanting to do so.
Are we talking www here or intranet?
RW
On 28 Jun, 13:03, Arjun
> Can anyone provide me with codes which will help me limit users from
> left/right clicking more than 2 times per day (or withing a time
> frame).
No, I won't do that, because it's a bad idea to do so.
I doubt that you have a good reason to disable clicking. There are
many reasons against doing such a thing, mainly because there are lots
of reasons to click and you shouldn't try to prevent most of them. If
you want to stop people saving images locally, then do that - don't
switch off clicking altogether.
It's also not a good idea to try and limit client-side behaviour,
because it's effectively impossible to do so. You can do it enough to
annoy casual users, you can't do it well or reliably enough to stop
"real image pirates" or whatever your bogeyman is.
* Think about what you really need to stop people doing.
* Protect against this by some server-side mechanism, where you have
some chance of making it work
* Never mess with users' user interface.
If you _really_ want to stop clicking like this, then write yourself a
click handler and hook it onto the page.
Have it check for a cookie called "ClicksToday" and if its value is
more than your cut-off, then return false to cancel the click.
If the cookie's value is less than this, then increment it and store
it again.
If the cookie isn't found, then create it as a persistent cookie for
the site or page and with an expiry that's midnight / 24 hours from
current. Set its value to 1.
Arjun wrote:
> Can anyone provide me with codes which will help me limit users from
> left/right clicking more than 2 times per day (or withing a time
> frame).
>
how do you know that I am using a mouse whilst visiting your site? I
don't click at all.
cheers
bernhard
--
www.daszeichen.ch
remove nixspam to reply
On Jun 28, 8:03 am, Arjun
> Can anyone provide me with codes which will help me limit users from
> left/right clicking more than 2 times per day (or withing a time
> frame).
Yes, use Flash.
On 2007-06-28, Travis Newbury wrote:
> On Jun 28, 8:03 am, Arjun
>> Can anyone provide me with codes which will help me limit users from
>> left/right clicking more than 2 times per day (or withing a time
>> frame).
>
> Yes, use Flash.
That way, many people will not even click once.
--
Chris F.A. Johnson
============================================================ =======
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
In article
"Chris F.A. Johnson"
> On 2007-06-28, Travis Newbury wrote:
> > On Jun 28, 8:03 am, Arjun
> >> Can anyone provide me with codes which will help me limit users from
> >> left/right clicking more than 2 times per day (or withing a time
> >> frame).
> >
> > Yes, use Flash.
>
> That way, many people will not even click once.
A completely new strategy is needed. Before anything at all is
loaded and anyone thinks of clicking anything, start hypnotising
the visitor by playing a soothing embedded voice "You can
right-click once... it is ok to right-click once... you can click
twice... it is ok to right-click twice... now just close your
eyes and right click... now let go... and again... that is it...
you will not right-click again till you leave the page... You
will not leave the page till you have seen and heard
everything..."
--
dorayme
On Jun 28, 6:50 pm, dorayme
> In article
> "Chris F.A. Johnson"
>
> > On 2007-06-28, Travis Newbury wrote:
> > > On Jun 28, 8:03 am, Arjun
> > >> Can anyone provide me with codes which will help me limit users from
> > >> left/right clicking more than 2 times per day (or withing a time
> > >> frame).
>
> > > Yes, use Flash.
>
> > That way, many people will not even click once.
>
> A completely new strategy is needed. Before anything at all is
> loaded and anyone thinks of clicking anything, start hypnotising
> the visitor by playing a soothing embedded voice "You can
> right-click once... it is ok to right-click once... you can click
> twice... it is ok to right-click twice... now just close your
> eyes and right click... now let go... and again... that is it...
> you will not right-click again till you leave the page... You
> will not leave the page till you have seen and heard
> everything..."
>
> --
> dorayme
You can do that in Flash too... ;-)
Okay, i have a really good reason to do that....i dont want to stop
them from clicking, i just want people to click only twice, so that
they click on stuff very carefully.....and no they cant use anything
else, as in keyboard and all for clicking on that link...
Arjun schreef:
> Okay, i have a really good reason to do that....i dont want to stop
> them from clicking, i just want people to click only twice, so that
> they click on stuff very carefully.....and no they cant use anything
> else, as in keyboard and all for clicking on that link...
>
The 'carefully' bit raises even more questions.
Do you want to make them think about which link they need, or what?
If I visit your site, why should you *not* want me to click every link
available? And why not more than once or twice?
What's so fragile about your pages....????
The statement about not being able to use a keyboard, raises serious
questions about accessability.
What's this site all about?????????????/
Rob
"dorayme"
news:doraymeRidThis-0D237B.08500429062007@news-vip.optusnet. com.au...
> In article
> "Chris F.A. Johnson"
>
>> On 2007-06-28, Travis Newbury wrote:
>> > On Jun 28, 8:03 am, Arjun
>> >> Can anyone provide me with codes which will help me limit users from
>> >> left/right clicking more than 2 times per day (or withing a time
>> >> frame).
>> >
>> > Yes, use Flash.
>>
>> That way, many people will not even click once.
>
> A completely new strategy is needed. Before anything at all is
> loaded and anyone thinks of clicking anything, start hypnotising
> the visitor by playing a soothing embedded voice "You can
> right-click once... it is ok to right-click once... you can click
> twice... it is ok to right-click twice... now just close your
> eyes and right click... now let go... and again... that is it...
> you will not right-click again till you leave the page... You
> will not leave the page till you have seen and heard
> everything..."
Whatever mind altering drugs you are using are certainly working.
On Jun 29, 8:51 am, Rob
> Arjun schreef:
>
> > Okay, i have a really good reason to do that....i dont want to stop
> > them from clicking, i just want people to click only twice, so that
> > they click on stuff very carefully.....and no they cant use anything
> > else, as in keyboard and all for clicking on that link...
>
> The 'carefully' bit raises even more questions.
>
> Do you want to make them think about which link they need, or what?
>
> If I visit your site, why should you *not* want me to click every link
> available? And why not more than once or twice?
>
> What's so fragile about your pages....????
>
> The statement about not being able to use a keyboard, raises serious
> questions about accessability.
>
> What's this site all about?????????????/
>
> Rob
In some training scenarios I can see the need to limit the number of
times you want the user to click something,and the forced use of a
mouse.
Chris F.A. Johnson wrote:
> On 2007-06-28, Travis Newbury wrote:
>> On Jun 28, 8:03 am, Arjun
>>> Can anyone provide me with codes which will help me limit users from
>>> left/right clicking more than 2 times per day (or withing a time
>>> frame).
>> Yes, use Flash.
>
> That way, many people will not even click once.
Yes, and not all can use flash, as adobe don't support more than 3 OS:es and
of those they support a really limited amount of CPU architecture, so not all
versions of microsoft windows nt has flash.
Then don't forget the CPU usage that flash has, you can make the same thing in
Java (not talking about javascript nor jscript) and you will be using less
than half of the CPU power you need for flash.
--
//Aho
On Jun 29, 9:39 am, "J.O. Aho"
> Chris F.A. Johnson wrote:
> > On 2007-06-28, Travis Newbury wrote:
> >> On Jun 28, 8:03 am, Arjun
> >>> Can anyone provide me with codes which will help me limit users from
> >>> left/right clicking more than 2 times per day (or withing a time
> >>> frame).
> >> Yes, use Flash.
>
> > That way, many people will not even click once.
>
> Yes, and not all can use flash, as adobe don't support more than 3 OS:es and
> of those they support a really limited amount of CPU architecture, so not all
> versions of microsoft windows nt has flash.
> Then don't forget the CPU usage that flash has, you can make the same thing in
> Java (not talking about javascript nor jscript) and you will be using less
> than half of the CPU power you need for flash.
>
> --
>
> //Aho
snore....
On Fri, 29 Jun 2007 14:59:00 +0000, Travis Newbury wrote:
>> Then don't forget the CPU usage that flash has, you can make the same thing in
>> Java (not talking about javascript nor jscript) and you will be using less
>> than half of the CPU power you need for flash.
>> ...
> snore....
That is no longer important on every computer, but it still counts on
hand held devices and such -- which seem to be becoming more important all
the time.
Travis Newbury wrote:
> On Jun 29, 8:51 am, Rob
>>
>> What's this site all about?????????????/
>
> In some training scenarios I can see the need to limit the number of
> times you want the user to click something,and the forced use of a
> mouse.
>
and in a training scenario you might be more in control of the users
environment, and then this whole thing could really be a case for Flash.
But we don't know what the OP wants...
bernhard
--
www.daszeichen.ch
remove nixspam to reply
In article <4684ff4c$0$69886$e4fe514c@news.xs4all.nl>,
Rob
> What's so fragile about your pages....????
It is obviously a delicate situation which OP would rather not
reveal. Perhaps we have a sort of hostage situation, a device is
being threatened to be detonated if author cannot stop more than
a couple of right clicks when he publishes and he is consulting
us on this, his family are maybe at stake. Why would any captor
insist on this sort of thing being the trigger? Because he is
mad? What does it matter? The poor OP needs help from us
knowledgeable and sane beings.
--
dorayme
In article <4685042a$0$50104$c30e37c6@pit-reader.telstra.net>,
"rf"
> "dorayme"
> news:doraymeRidThis-0D237B.08500429062007@news-vip.optusnet. com.au...
> > In article
> > "Chris F.A. Johnson"
> >
> >> On 2007-06-28, Travis Newbury wrote:
> >> > On Jun 28, 8:03 am, Arjun
> >> >> Can anyone provide me with codes which will help me limit users from
> >> >> left/right clicking more than 2 times per day (or withing a time
> >> >> frame).
> >> >
> >> > Yes, use Flash.
> >>
> >> That way, many people will not even click once.
> >
> > A completely new strategy is needed. Before anything at all is
> > loaded and anyone thinks of clicking anything, start hypnotising
> > the visitor by playing a soothing embedded voice "You can
> > right-click once... it is ok to right-click once... you can click
> > twice... it is ok to right-click twice... now just close your
> > eyes and right click... now let go... and again... that is it...
> > you will not right-click again till you leave the page... You
> > will not leave the page till you have seen and heard
> > everything..."
>
> Whatever mind altering drugs you are using are certainly working.
rf, you will have seen my last post on this by now. The only drug
I am using at the moment is an eye drop and eye ointment. After
the recent intense rain, I had a leak in the roof, got up there
to take a look and it was very dusty and I reckon something got
in the eye. Ever had a doc "lift a lid", I didn't like it. I have
not been myself since, been getting silly thoughts. Please be
tolerant.
--
dorayme
On Jun 29, 12:01 pm, Bernhard Sturm
> Travis Newbury wrote:
> > In some training scenarios I can see the need to limit the number of
> > times you want the user to click something,and the forced use of a
> > mouse.
> and in a training scenario you might be more in control of the users
> environment, and then this whole thing could really be a case for Flash.
> But we don't know what the OP wants...
No we don't, so a flash solution is just as viable as any other.
On Jun 29, 11:50 am, mbstevens
> On Fri, 29 Jun 2007 14:59:00 +0000, Travis Newbury wrote:
> >> Then don't forget the CPU usage that flash has, you can make the same thing in
> >> Java (not talking about javascript nor jscript) and you will be using less
> >> than half of the CPU power you need for flash.
> >> ...
> > snore....
>
> That is no longer important on every computer, but it still counts on
> hand held devices and such -- which seem to be becoming more important all
> the time.
Speaking of which, the new Iphone is flash enabled....
In article
<1183166173.085864.107540@n60g2000hse.googlegroups.com>,
Travis Newbury
> On Jun 29, 12:01 pm, Bernhard Sturm
> > Travis Newbury wrote:
> > > In some training scenarios I can see the need to limit the number of
> > > times you want the user to click something,and the forced use of a
> > > mouse.
> > and in a training scenario you might be more in control of the users
> > environment, and then this whole thing could really be a case for Flash.
> > But we don't know what the OP wants...
>
> No we don't, so a flash solution is just as viable as any other.
And also the reason why absurd suggestions are being made. They
may flush out the OPs intentions. I mean what next, someone is
going to come on and ask how they can stop their visitors
sneezing?
--
dorayme
Gazing into my crystal ball I observed dorayme
DC04A1.12294930062007@news-vip.optusnet.com.au:
> I mean what next, someone is
> going to come on and ask how they can stop their visitors
> sneezing?
>
>
If they're sun sneezers like me, they can tell their visitors to stay out
of the sun.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
In article
Adrienne Boswell
> Gazing into my crystal ball I observed dorayme
>
> DC04A1.12294930062007@news-vip.optusnet.com.au:
>
> > I mean what next, someone is
> > going to come on and ask how they can stop their visitors
> > sneezing?
> >
> If they're sun sneezers like me, they can tell their visitors to stay out
> of the sun.
Or wear the darkest and coolest of wrap-around shades?
--
dorayme
Gazing into my crystal ball I observed dorayme
news:doraymeRidThis-61D0F9.16360230062007@news-vip.optusnet. com.au:
> In article
> Adrienne Boswell
>
>> Gazing into my crystal ball I observed dorayme
>>
>> DC04A1.12294930062007@news-vip.optusnet.com.au:
>>
>> > I mean what next, someone is
>> > going to come on and ask how they can stop their visitors
>> > sneezing?
>> >
>
>> If they're sun sneezers like me, they can tell their visitors to stay
>> out of the sun.
>
> Or wear the darkest and coolest of wrap-around shades?
>
Doesn't work... it's the angle of the sun on a particular part of your
eye whose nerve is too close to something in your brain that triggers the
sneeze. Laser light shows trigger something worse, the desire to sneeze,
but not quite enough light to do it, so you sit there going "ah, ah, ah,
ah, ah...." and never get to the chew.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
In article
Adrienne Boswell
> Gazing into my crystal ball I observed dorayme
> >> If they're sun sneezers like me, they can tell their visitors to stay
> >> out of the sun.
> >
> > Or wear the darkest and coolest of wrap-around shades?
> >
>
> Doesn't work... it's the angle of the sun on a particular part of your
> eye whose nerve is too close to something in your brain that triggers the
> sneeze. Laser light shows trigger something worse, the desire to sneeze,
> but not quite enough light to do it, so you sit there going "ah, ah, ah,
> ah, ah...." and never get to the chew.
I have been reading surprising figures about the extent of this
syndrome. By the way, AB, your introduction of this to the ng has
made this thread make the top ten in Google for "sun sneezers".
--
dorayme
On Sun, 01 Jul 2007 07:39:47 GMT Adrienne Boswell scribed:
>>> If they're sun sneezers like me, they can tell their visitors to
>>> stay out of the sun.
>>
>> Or wear the darkest and coolest of wrap-around shades?
>>
>
> Doesn't work... it's the angle of the sun on a particular part of your
> eye whose nerve is too close to something in your brain that triggers
> the sneeze. Laser light shows trigger something worse, the desire to
> sneeze, but not quite enough light to do it, so you sit there going
> "ah, ah, ah, ah, ah...." and never get to the chew.
What do you do in the rain, hiccup?
--
Neredbojias
Once I had a little dog
Who wagged its tail spritely.
But it walked by the harvestor
And now is shorter slightly.
Gazing into my crystal ball I observed Neredbojias
news:Xns996064011971Bnanopandaneredbojias@198.186.190.161:
> On Sun, 01 Jul 2007 07:39:47 GMT Adrienne Boswell scribed:
>
>>>> If they're sun sneezers like me, they can tell their visitors to
>>>> stay out of the sun.
>>>
>>> Or wear the darkest and coolest of wrap-around shades?
>>>
>>
>> Doesn't work... it's the angle of the sun on a particular part of your
>> eye whose nerve is too close to something in your brain that triggers
>> the sneeze. Laser light shows trigger something worse, the desire to
>> sneeze, but not quite enough light to do it, so you sit there going
>> "ah, ah, ah, ah, ah...." and never get to the chew.
>
> What do you do in the rain, hiccup?
>
No, I melt.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
On Sun, 01 Jul 2007 17:11:03 GMT Adrienne Boswell scribed:
>> What do you do in the rain, hiccup?
>>
>
> No, I melt.
Well, that's good. Some dames never thaw out.
--
Neredbojias
Once I had a little dog
Who wagged its tail spritely.
But it walked by the harvestor
And now is shorter slightly.
On Sun, 01 Jul 2007 07:39:47 GMT, Adrienne Boswell wrote:
> Gazing into my crystal ball I observed dorayme
>
> news:doraymeRidThis-61D0F9.16360230062007@news-vip.optusnet. com.au:
>
>> In article
>> Adrienne Boswell
>>
>>> Gazing into my crystal ball I observed dorayme
>>>
>>> DC04A1.12294930062007@news-vip.optusnet.com.au:
>>>
>>> > I mean what next, someone is
>>> > going to come on and ask how they can stop their visitors
>>> > sneezing?
>>> >
>>
>>> If they're sun sneezers like me, they can tell their visitors to stay
>>> out of the sun.
>>
>> Or wear the darkest and coolest of wrap-around shades?
>>
>
> Doesn't work... it's the angle of the sun on a particular part of your
> eye whose nerve is too close to something in your brain that triggers the
> sneeze. Laser light shows trigger something worse, the desire to sneeze,
> but not quite enough light to do it, so you sit there going "ah, ah, ah,
> ah, ah...." and never get to the chew.
Hmmmm.... Blue eyed and very near sighted, both of which aggravate the
condition I've heard called sun alergy (the sneezing fit when you step out
of doors into bright sunlight!)
I wear the darkerst sunglasses I can find (over contacts) and AB is
definitely right in that they don't help
step outside and start sneezing my fool head off!
AB - I've noticed that a little with some laser light shows, but hadn't
really thought about it - the difference being day and night (literally).
//al