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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <fabiosantosart@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.028
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'modify': 0.07; 'rewrite': 0.09; 'cc:addr:python-list': 0.11; 'wrote': 0.14; 'rewritten': 0.16; 'subject:party': 0.16; 'user..': 0.16; 'extensions': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'trying': 0.19; 'server,': 0.19; 'user.': 0.19; 'working.': 0.19; 'email addr:gmail.com&gt;': 0.22; 'cc:addr:python.org': 0.22; 'load': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '&gt;': 0.26; 'header:In-Reply-To:1': 0.27; 'relative': 0.30; 'message-id:@mail.gmail.com': 0.30; 'serve': 0.31; 'that.': 0.31; 'disable': 0.31; 'dom': 0.31; 'could': 0.34; 'subject:with': 0.35; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'easily': 0.37; 'server': 0.38; 'that,': 0.38; 'legally': 0.39; 'sure': 0.39; 'problems.': 0.60; 'such': 0.63; 'to:addr:gmail.com': 0.65; 'legal': 0.71; 'yourself': 0.78; 'redirecting': 0.84; 'subject:third': 0.84; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=nhPKxxQOCcVz1ejcK9SVly0gSzjXOOzi6igCKQCgkVc=; b=xKXAK97N7jI7R8CxurKaUQIuL4plExpp52Hhg1vBLN2UTOCjG8wT0ZckdmDMHF8R1q 5Gtq9+dnOCb7997eo24i+oS4TkOBDuAe2jGGkT+yjHXySfMYtSEcxB24Nu/HFdweGezA jIYBuUDMnySH/61ozKyBDduHG/VrrQ90kSbyTfX1UBGKlxXkR6Mx8L9NWfAm2SGsVEt6 4Z4JL8Psw7j358fv5ZPMyIe/EOGrkkZ43mK/1GDVjLJQ+/Ufz+dMVGXbCgduSm7EwV3/ Rc7CJnf9Ig73HHLppaH9mbNYoMK/HYshdmVAqZuYN+sLJ8ZNLl/SPOC01V3f0ME7+QQ2 JgnQ==
MIME-Version 1.0
X-Received by 10.49.27.135 with SMTP id t7mr1974003qeg.22.1370850716232; Mon, 10 Jun 2013 00:51:56 -0700 (PDT)
In-Reply-To <b708f854-f75d-4579-9c41-09fca02df01f@googlegroups.com>
References <422dd712-2bc5-4c48-b6ca-62face5320c7@googlegroups.com> <mailman.2928.1370802776.3114.python-list@python.org> <b708f854-f75d-4579-9c41-09fca02df01f@googlegroups.com>
Date Mon, 10 Jun 2013 08:51:56 +0100
Subject Re: Redirecting to a third party site with injected HTML
From Fábio Santos <fabiosantosart@gmail.com>
To Guy Tamir <guytamir1@gmail.com>
Content-Type multipart/alternative; boundary=047d7bb042ccfbf91204dec80d66
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.2958.1370850725.3114.python-list@python.org> (permalink)
Lines 40
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1370850725 news.xs4all.nl 15864 [2001:888:2000:d::a6]:34308
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:47527

Show key headers only | 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