# Proxy Server

**URL:** <https://rubytalk.org/t/proxy-server/68482>\
**Category:** ruby-talk\
**Created:** [19 September 2013 14:00 UTC](https://rubytalk.org/t/proxy-server/68482 "2013-09-19T14:00:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![7stud2](https://avatars.discourse-cdn.com/v4/letter/7/9de053/32.png) [@7stud2](https://rubytalk.org/u/7stud2)\
**Post date:** [19 September 2013 14:00 UTC](https://rubytalk.org/t/proxy-server/68482/1 "2013-09-19T14:00:17Z")

</div>

I understand that all a proxy does is redirect net traffic, but I dont  
see how one could be used to bypass web content filtering. I do plan to  
write one, (and make money off of people in my school) and I would like  
for someone to explain how a proxy could be used to do this, and mabye  
suggest a good gem to work with in this project

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Jeremy\_Bopp](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/jeremy_bopp/32/1937_2.png) [@Jeremy\_Bopp](https://rubytalk.org/u/Jeremy_Bopp)\
**Post date:** [19 September 2013 14:38 UTC](https://rubytalk.org/t/proxy-server/68482/2 "2013-09-19T14:38:39Z")

</div>

First of all, there is no need to write your own proxy software for  
this. It's far more involved than you think, and there are plenty of  
free implementations available for many platforms that will be more  
performant and secure than what you're likely to produce yourself using  
Ruby.

In order for any proxy to defeat a web content filter (which itself is  
often a kind of proxy!), you have to be able to reach your proxy  
/through/ the content filtering service. In other words, your proxy  
lives on the Internet at large, and if you can reach it from within a  
secured network such as a corporate office or a school, it can allow you  
to go anywhere you wish by providing a tunnel through which your true  
requests are made. However, a well-secured content filter is likely to  
block your proxy service to begin with simply by disallowing certain  
kinds of traffic to non-vetted hosts or by only allowing specific  
non-proxy traffic (such as plain HTTP).

Assuming you find a way to circumvent the content filter at your school,  
have you considered the ramifications of not only using that service  
yourself but also selling access to it to others at your school? The  
administration will only need to hear about it from one person, and at  
best your service will then be blocked explicitly. You may also face  
disciplinary repercussions or expulsion.

-Jeremy

> **···**
>
> On 09/19/2013 09:00 AM, James Parsons wrote:
> 
> > I understand that all a proxy does is redirect net traffic, but I dont  
> > see how one could be used to bypass web content filtering. I do plan to  
> > write one, (and make money off of people in my school) and I would like  
> > for someone to explain how a proxy could be used to do this, and mabye  
> > suggest a good gem to work with in this project

---

<div class="post-metadata">

**Author:** ![Peter\_Hickman2](https://yyz1.discourse-cdn.com/flex029/user_avatar/rubytalk.org/peter_hickman2/32/1832_2.png) [@Peter\_Hickman2](https://rubytalk.org/u/Peter_Hickman2)\
**Post date:** [19 September 2013 14:34 UTC](https://rubytalk.org/t/proxy-server/68482/3 "2013-09-19T14:34:02Z")

</div>

Why write one when you could just install one and configure it?

Try Googling for "open source proxy server"

---

<div class="post-metadata">

**Author:** ![Eliezer\_Croitoru](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@Eliezer\_Croitoru](https://rubytalk.org/u/Eliezer_Croitoru)\
**Post date:** [19 September 2013 23:56 UTC](https://rubytalk.org/t/proxy-server/68482/4 "2013-09-19T23:56:28Z")

</div>

I will be more then happy to see this kind proxy pseudo code!  
if you do get to the point that you have a pseudo code please share it.

Eliezer

> **···**
>
> On 09/19/2013 05:00 PM, James Parsons wrote:
> 
> > I understand that all a proxy does is redirect net traffic, but I dont  
> > see how one could be used to bypass web content filtering. I do plan to  
> > write one, (and make money off of people in my school) and I would like  
> > for someone to explain how a proxy could be used to do this, and mabye  
> > suggest a good gem to work with in this project

---

<div class="post-metadata">

**Author:** ![Peter\_Wildemann](https://avatars.discourse-cdn.com/v4/letter/p/a88e4f/32.png) [@Peter\_Wildemann](https://rubytalk.org/u/Peter_Wildemann)\
**Post date:** [20 September 2013 04:40 UTC](https://rubytalk.org/t/proxy-server/68482/5 "2013-09-20T04:40:52Z")

</div>

One can be used for bypassing websecurity if your server that is running the proxy is not on a blacklist of your school. The whole thing shouldn't even be that difficult, just some TCP/IT-Packet-Header parsing.  
By the way, a funny trick that works in my school for bypassing web security is replacing 'http' with 'https' in URLs. So you may visit '[https://grooveshark.com](https://grooveshark.com)' and: Here you are, Freedom! 🙂

Sinc. Peter Wildemann

> **···**
>
> > Am 20.09.2013 um 01:56 schrieb Eliezer Croitoru \<eliezer@ngtech.co.il\>:
> > 
> > > On 09/19/2013 05:00 PM, James Parsons wrote:  
> > > I understand that all a proxy does is redirect net traffic, but I dont  
> > > see how one could be used to bypass web content filtering. I do plan to  
> > > write one, (and make money off of people in my school) and I would like  
> > > for someone to explain how a proxy could be used to do this, and mabye  
> > > suggest a good gem to work with in this project
> > 
> > I will be more then happy to see this kind proxy pseudo code!  
> > if you do get to the point that you have a pseudo code please share it.
> > 
> > Eliezer

---

<div class="post-metadata">

**Author:** ![Eliezer\_Croitoru](https://avatars.discourse-cdn.com/v4/letter/e/6f9a4e/32.png) [@Eliezer\_Croitoru](https://rubytalk.org/u/Eliezer_Croitoru)\
**Post date:** [22 September 2013 22:52 UTC](https://rubytalk.org/t/proxy-server/68482/6 "2013-09-22T22:52:08Z")

</div>

Hey,

the thing in your school is a security hole and the admin should be  
asked about it to make sure it will not happen.  
The WWW is a very dangerous place for most of us.

Eliezer

> **···**
>
> On 09/20/2013 07:40 AM, Peter Wildemann wrote:
> 
> > One can be used for bypassing websecurity if your server that is running the proxy is not on a blacklist of your school. The whole thing shouldn't even be that difficult, just some TCP/IT-Packet-Header parsing.  
> > By the way, a funny trick that works in my school for bypassing web security is replacing 'http' with 'https' in URLs. So you may visit '[https://grooveshark.com](https://grooveshark.com)' and: Here you are, Freedom! 🙂
> > 
> > Sinc. Peter Wildemann
> > 
> > > Am 20.09.2013 um 01:56 schrieb Eliezer Croitoru \<eliezer@ngtech.co.il\>:
> > > 
> > > > On 09/19/2013 05:00 PM, James Parsons wrote:  
> > > > I understand that all a proxy does is redirect net traffic, but I dont  
> > > > see how one could be used to bypass web content filtering. I do plan to  
> > > > write one, (and make money off of people in my school) and I would like  
> > > > for someone to explain how a proxy could be used to do this, and mabye  
> > > > suggest a good gem to work with in this project
> > > 
> > > I will be more then happy to see this kind proxy pseudo code!  
> > > if you do get to the point that you have a pseudo code please share it.
> > > 
> > > Eliezer
