Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   How to block http file transfer (http://www.velocityreviews.com/forums/t952970-how-to-block-http-file-transfer.html)

hon123456 10-03-2012 08:26 AM

How to block http file transfer
 
Dear all,
I am new to internet programming. Now I want to learn to
write a program that can allow/block the downloading file in browset.
So how can I start to learn to write it. Any introduction site or
book.Because I want to write a program that can block the download
file from children and make it free. Or there exist any free blocking
software? Thanks.

Miquel van Smoorenburg 10-03-2012 09:02 AM

Re: How to block http file transfer
 
In article <95139a63-3cec-45ed-a17d-cea9eba62c19@u2g2000pbl.googlegroups.com>,
hon123456 <peterhon321@yahoo.com.hk> wrote:
>Dear all,
> I am new to internet programming. Now I want to learn to
>write a program that can allow/block the downloading file in browset.
>So how can I start to learn to write it. Any introduction site or
>book.Because I want to write a program that can block the download
>file from children and make it free. Or there exist any free blocking
>software? Thanks.


You probably want to write a browser-plugin. That's probably the
easiest to do for firefox, so you will have to use firefox as a
browser.

Now you can write plugins in C++, but that's quite complicated. You
can also write plugins in javascript + HTML5 + XML.

So you'll probably want to learn programming in javascript + HTML5 + XML
(there's quite a bit you can find on the web about this) - note that will
likely take a couple of months to master.

Once you've done that, you can follow a tutorial like this one
http://blog.mozilla.org/addons/2009/...fox-extension/
and write your first firefox extension.

Mike.

Jorgen Grahn 10-03-2012 02:01 PM

Re: How to block http file transfer
 
On Wed, 2012-10-03, Miquel van Smoorenburg wrote:
> In article <95139a63-3cec-45ed-a17d-cea9eba62c19@u2g2000pbl.googlegroups.com>,
> hon123456 <peterhon321@yahoo.com.hk> wrote:
>>Dear all,
>> I am new to internet programming. Now I want to learn to
>>write a program that can allow/block the downloading file in browset.
>>So how can I start to learn to write it. Any introduction site or
>>book.Because I want to write a program that can block the download
>>file from children and make it free. Or there exist any free blocking
>>software? Thanks.


It's called a "web proxy" or sometimes "transparent proxy". Free
examples include "Privoxy" and "squid". (I don't know if they have
good support for blocking like you want, because the only human under
my control is myself.)

> You probably want to write a browser-plugin. That's probably the
> easiest to do for firefox, so you will have to use firefox as a
> browser.


I think that kind of stuff is usually done as a proxy.

I also note that most of the work is collecting the information needed
to make blocking decisions. Unless you plan to block everything.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .


All times are GMT. The time now is 07:44 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.