# How to handle the final output page?

**URL:** <https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282>\
**Category:** Rails\
**Created:** [December 6, 2007, 5:01am UTC](https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282 "2007-12-06T05:01:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/73ab20/32.png) [@wrb](https://www.ruby-forum.com/u/wrb)\
**Post date:** [December 6, 2007, 5:01am UTC](https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282/1 "2007-12-06T05:01:25Z")

</div>

i want to use javascript to encrypt the whole content in html tag  
and decrypt it in the browser side (in order to avoid robot to grab  
the  
content) . so i want to write a plugin or sth to handle the output of  
my  
ROR application before it is sent to the client.

anyone has any clue on how to do it? Any suggestion would be helpful,  
thankyou!

---

<div class="post-metadata">

**Author:** ![wrb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/73ab20/32.png) [@wrb](https://www.ruby-forum.com/u/wrb)\
**Post date:** [December 6, 2007, 5:04am UTC](https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282/2 "2007-12-06T05:04:20Z")

</div>

You could make a robots.txt in your RAILS\_ROOT/public/ directory and put  
this in it:

User-agent: \*  
Disallow: /

On Dec 6, 2007 2:24 PM, wrb [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i want to use javascript to encrypt the whole content in html tag  
> and decrypt it in the browser side (in order to avoid robot to grab the  
> content) . so i want to write a plugin or sth to handle the output of my  
> ROR application before it is sent to the client.
> 
> anyone has any clue on how to do it? Any suggestion would be helpful,  
> thankyou!
> 
> >

–  
Ryan B.

---

<div class="post-metadata">

**Author:** ![wrb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/73ab20/32.png) [@wrb](https://www.ruby-forum.com/u/wrb)\
**Post date:** [December 6, 2007, 5:52am UTC](https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282/3 "2007-12-06T05:52:17Z")

</div>

thanks, but how about imagining i live in a opressed country and i try  
to  
avoid goverment examine (by anaylize internet data stream)?  
i really think javascript encryption is a good way to do it:)

2007/12/6, Ryan B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![wrb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/73ab20/32.png) [@wrb](https://www.ruby-forum.com/u/wrb)\
**Post date:** [December 6, 2007, 5:54am UTC](https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282/4 "2007-12-06T05:54:02Z")

</div>

Sending encrypted data over the internet from an oppressive country will  
only make their government more suspicious.

Sorry, even though your country might be The Most Evil Country In The  
World,  
by law I cannot help you.

On Dec 6, 2007 3:21 PM, wrb [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > Disallow: /
> > 
> > > anyone has any clue on how to do it? Any suggestion would be helpful,
> 
> >

–  
Ryan B.

---

<div class="post-metadata">

**Author:** ![wrb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/73ab20/32.png) [@wrb](https://www.ruby-forum.com/u/wrb)\
**Post date:** [December 6, 2007, 5:55am UTC](https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282/5 "2007-12-06T05:55:12Z")

</div>

and i wonder is there any way to allow specific search engine robot to  
access my site, while avoiding unknown robot?

2007/12/6, wrb [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![wrb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/73ab20/32.png) [@wrb](https://www.ruby-forum.com/u/wrb)\
**Post date:** [December 6, 2007, 6:00am UTC](https://www.ruby-forum.com/t/how-to-handle-the-final-output-page/122282/6 "2007-12-06T06:00:27Z")

</div>

in fact i don’t need full encrypted (such as SSH).  
And i don’t know discussion here would violate any law, (not at least in  
my  
Evil Coutry.)  
sigh, if there is any law problem, how about we focus on the technical  
facet  
of this situation

2007/12/6, Ryan B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
