Is there any module which will be useful to disable the right mouse click to prevent copy content on my drupal site.

if not how to achieve that requirement.

please guide me

with thanks and regards
sangeetha rao

Comments

johnhanley’s picture

I don't know of a module, but this can be accomplished with JavaScript.

That said, I wouldn't waste your time. It can easily be defeated.

What kind of content: text, images? There are ways to prevent hot-linking of images.

-------------------------------------------------------

"The sting in any rebuke is the truth." - Benjamin Franklin

sangeetharao’s picture

Benjamin Franklin, thank you for your suggestion.

Is there any module in drupal that will display the user ip addresses in the bloke area?

could you suggest that?

with regards
sangeetha rao

johnhanley’s picture

No need to be so formal. Just call me Ben. :-)

The user's IP address is stored in the sessions table.

You don't need a module; just do something like:

global $user;
$user_ip = db_result(db_query("SELECT hostname FROM {sessions} WHERE uid = %d", $user->uid));
$output = t("Your IP Address: !user_ip", array("!user_ip" => $user_ip));
return $output;

-------------------------------------------------------

"The sting in any rebuke is the truth." - Benjamin Franklin

smcclendon’s picture

As a newbie.....

How can I use this on my Drupal site to keep people from saving images?

Can I just put this in the content?

dman’s picture

How can I use this on my Drupal site to keep people from saving images?
Can I just put this in the content?

No.
No you can't.
Sorry.

.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |

tryitonce’s picture

where does the code go - it is probably obvious for most - but not yet for me.

thanks for helping

johnhanley’s picture

Just create a node or perhaps a block (wherever you want the output to appear), copy/paste the code and change the input filter to php. You'll also need to wrap the code in opening/closing php tags.

<?php
...
?>
tryitonce’s picture

Great, thanks for the quick answer.

vlip’s picture

i tried javascripts to disable rightmouse whit full html enabled,,

but the rightmouse stay's able! for everybody i tested several scripts

Sandip Choudhury’s picture

https://drupal.org/project/copyprevention

This module is appropriate for you.

Sandip Choudhury
http://hostingultraso.com

sangeet’s picture

Is this my posting?