Coder Social home page Coder Social logo

freedev / mod_substitute_append Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1 KB

An Apache httpd 2.2 module that perform search and replace operations on response bodies, in case of empty search results it appends a default string at end of response bodies.

mod_substitute_append's Introduction

mod_substitute_append

##What is mod_substitute_append?

mod_substitute_append is an Apache httpd 2.2 module that provides ability to: * append strings at end of response bodies * search and substitute string inside response bodies * search and substitute string inside response bodies and, in case of unsuccessful search, append a string at end of response bodies

##Updates on version 1.1

Version 1.1 has been tested on several sites (about 160K and counting) since middle of April 2010.

##How it works?

If you have to manage many sites (i.e. hundreds of thousand of pages) and you need to modify every page adding simple javascript but you don't want modify all html sources (or you cannot modify because are dynamically created). * mod_substitute_append can be configured to inject html/javascript at end of response bodies * mod_substitute_append can search and tags and automagically include strings at the beginning and ending of a Web page * mod_substitute_append can search/replace html/javascript at end of response bodies. Injection will be executed only if searches were failed

This is particularly useful when html is produced by third part and you do not have even the privileges to modify it. So it can be used to add javascript tracking code inside html pages, to wrap documents for a standard look and feel for a site (or to insert banners on any given document in a site). It can be also used together with mod_deflate

mod_substitute_append's People

Contributors

freedev avatar

Watchers

 avatar  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.