Michael Robinson
asked on
How can I prevent someone from saving or copying or printing a web page
How can I prevent someone from saving or copying or printing a web page using either ColdFusion or JavaScript?
At least I want to make it difficult for a person to steal certain content.
I've seen this done before but I don't know how it was done.
I imagine there is a way to disable these functions (saving, printing, copying) in a browser when a person lands on certain pages.
All of my pages are .CFM.
At least I want to make it difficult for a person to steal certain content.
I've seen this done before but I don't know how it was done.
I imagine there is a way to disable these functions (saving, printing, copying) in a browser when a person lands on certain pages.
All of my pages are .CFM.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
erikTsomik's solution only prevents right-clicks. You can still use the menu's and printing.
in a nutshell...you can't
you can make it a bit of a pain... both erik and gambit's links are good starts...
you could also have the content you want "protected" to open in a new browser window with no menus so it's harder to figure out how to print
that being said, all you have to do is turn off JS
"I imagine there is a way to disable these functions (saving, printing, copying) in a browser " ...nope... these are independent of the browser viewport (and iun the case of IE..actually tied in to the OS...
These steps will fool grandma but anyone who really wants your stuff can get it... If you really don't want people to download or print your content...the only solution is to keep it off the web
you can make it a bit of a pain... both erik and gambit's links are good starts...
you could also have the content you want "protected" to open in a new browser window with no menus so it's harder to figure out how to print
that being said, all you have to do is turn off JS
"I imagine there is a way to disable these functions (saving, printing, copying) in a browser " ...nope... these are independent of the browser viewport (and iun the case of IE..actually tied in to the OS...
These steps will fool grandma but anyone who really wants your stuff can get it... If you really don't want people to download or print your content...the only solution is to keep it off the web
ASKER
I'm hoping to make it a pain and to discourage most people from printing or copying a few pages.
But I know I can't fool everyone.
So how to I turn of JS for these few pages, and how do I turn it back on again later?
Mike
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.