# I want to disable key board options in ruby on rails

**URL:** <https://www.ruby-forum.com/t/i-want-to-disable-key-board-options-in-ruby-on-rails/144082>\
**Category:** Ruby\
**Created:** [July 25, 2008, 7:40am UTC](https://www.ruby-forum.com/t/i-want-to-disable-key-board-options-in-ruby-on-rails/144082 "2008-07-25T07:40:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sujith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@sujith](https://www.ruby-forum.com/u/sujith)\
**Post date:** [July 25, 2008, 7:40am UTC](https://www.ruby-forum.com/t/i-want-to-disable-key-board-options-in-ruby-on-rails/144082/1 "2008-07-25T07:40:30Z")

</div>

i want to disable keyboard options in browser in one page in Ruby On  
Rails  
pls send me the solution

---

<div class="post-metadata">

**Author:** ![sujith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/77aa72/32.png) [@sujith](https://www.ruby-forum.com/u/sujith)\
**Post date:** [July 26, 2008, 7:03am UTC](https://www.ruby-forum.com/t/i-want-to-disable-key-board-options-in-ruby-on-rails/144082/2 "2008-07-26T07:03:41Z")

</div>

On Friday 25 July 2008 00:34:38 Sujith Gangaraju wrote:

> i want to disable keyboard options in browser in one page in Ruby On  
> Rails

If I understand right, you don’t want people to be able to highlight  
text on  
your website and copy it (ctrl+c).

> pls send me the solution

Solution: Don’t try.

This is not a Rails limitation. This is you not understanding the  
implications  
of the Web in general.

Have you disabled right-clicks? If not, all someone has to do is  
highlight  
text and right-click-\>copy.

Do you know what browser your users are using? Different browsers do  
this in  
different ways, and some don’t do it at all.

What if they’re using wget? You could block the wget user-agent – in  
which  
case, the user can just use the --user-agent commandline option.

What are you going to do about file-\>save as?

What about packet sniffers? Is every single request going to be sent via  
https? What if the user’s behind a proxy?

There are all kinds of tricks you can do, and every single one is  
security  
through obscurity – which means it’s only a matter of time until  
someone  
figures out a way through.
