Giter VIP home page Giter VIP logo

parthnan / http-image-replacer Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 3.87 MB

Modified an Open Source HTTP Proxy software, ffproxy, to make the browser edit image tags in HTTP response bodies to display any image online or on computer(Not possible with encoded HTTPS).

License: GNU General Public License v3.0

Makefile 2.36% C 71.87% M4 0.65% C++ 0.14% Assembly 17.00% Shell 7.99%
http-proxy client-server-architecture ffproxy image-replace http-response-recorder

http-image-replacer's Introduction

HitCount

Overview

Modified an Open Source HTTP Proxy software, ffproxy(http://ffproxy.sourceforge.net/), to make the browser edit image tags in HTTP response bodies to display any image online or on computer(Not possible with encoded HTTPS). It replaces the URLs of all images found in HTML part of successful (code 200) responses, with the specified URL (within pne of the modified files ffproxy-1.6/request.c).

Motivation : This modified software enables users to replace images on specific blacklisted sites with specified image, allowing content blocking and a smoother web experience.

Challenges Overcame

This was my first true experience in Web-development(year 2016) and with the OSI Client-Server model. I designed various UML diagrams to help me understand ffproxy. Only by analysing every nook of each file of ffproxy was I able to properly modify a software with 50+ files.

Test Run

Usage method below image. It completely changed my msn home page! All images replaced by this image:https://images.pexels.com/photos/18495/pexels-photo.jpg?auto=compress&cs=tinysrgb&h=3X5 .

alt text

How To Use

First download and install Image replacer by the commands shown below.

Run the modified ffproxy using the following commands on a UNIX machine(in my case a VM on my localhost), which will be the Proxy machine in between the server(websites,Browser) and client(my computer OS). Within the code, port 8080 is specified as the proxy socket.

Set the browser of client machine to connect to port :8080 not the default 80, for example I set options for Edge as below.

http-image-replacer's People

Contributors

parthnan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.