Limiting No. of Left Clicks on A Web Page

A

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).
 
R

Rob

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
 
A

Andy Dingley

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.
 
B

Bernhard Sturm

Arjun said:
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
 
T

Travis Newbury

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.
 
D

dorayme

"Chris F.A. Johnson said:
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..."
 
T

Travis Newbury

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..."

You can do that in Flash too... ;-)
 
A

Arjun

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...
 
R

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
 
R

rf

dorayme said:
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.
 
T

Travis Newbury

Arjun schreef:


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.
 
J

J.O. Aho

Chris said:
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.
 
T

Travis Newbury

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.

snore....
 
M

mbstevens

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.
 
B

Bernhard Sturm

Travis said:
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
 
D

dorayme

Rob said:
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.
 
D

dorayme

"rf said:
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.
 
T

Travis Newbury

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.
 
T

Travis Newbury

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....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top