Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #47527

Re: Redirecting to a third party site with injected HTML

References <422dd712-2bc5-4c48-b6ca-62face5320c7@googlegroups.com> <mailman.2928.1370802776.3114.python-list@python.org> <b708f854-f75d-4579-9c41-09fca02df01f@googlegroups.com>
Date 2013-06-10 08:51 +0100
Subject Re: Redirecting to a third party site with injected HTML
From Fábio Santos <fabiosantosart@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.2958.1370850725.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 10 Jun 2013 07:58, "Guy Tamir" <guytamir1@gmail.com> wrote:
> since i wrote some extensions in the past that allowed me to change the
DOM easily i thought there might be an way to do so from the server before
redirecting the user..

There could be a way to do that, but some of the features in the target
site would not be working. You could load the site yourself on your server,
and modify and serve that HTML to the user. Then you'd have to take care to
rewrite or disable all the links on the page (they may be relative to the
target domain and as such mean nothing on yours). Also images and other
resources' URLs have to be rewritten if they are relative URLs.

Then there are legal problems. Make sure you are legally allowed to do what
you are trying to do. I can't help with that.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Redirecting to a third party site with injected HTML guytamir1@gmail.com - 2013-06-09 10:09 -0700
  Re: Redirecting to a third party site with injected HTML Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-09 13:14 -0400
  Re: Redirecting to a third party site with injected HTML Fábio Santos <fabiosantosart@gmail.com> - 2013-06-09 18:22 +0100
    Re: Redirecting to a third party site with injected HTML guytamir1@gmail.com - 2013-06-09 10:52 -0700
      Re: Redirecting to a third party site with injected HTML Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-09 14:03 -0400
      Re: Redirecting to a third party site with injected HTML Roy Smith <roy@panix.com> - 2013-06-09 14:53 -0400
  Re: Redirecting to a third party site with injected HTML Ian <hobson42@gmail.com> - 2013-06-09 19:24 +0100
    Re: Redirecting to a third party site with injected HTML Guy Tamir <guytamir1@gmail.com> - 2013-06-09 23:50 -0700
      Re: Redirecting to a third party site with injected HTML Fábio Santos <fabiosantosart@gmail.com> - 2013-06-10 08:51 +0100
  Re: Redirecting to a third party site with injected HTML Tim Chase <python.list@tim.thechases.com> - 2013-06-09 13:31 -0500
  Re: Redirecting to a third party site with injected HTML Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-10 07:59 +0000

csiph-web