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: 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>': 0.22; 'cc:addr:python.org': 0.22; 'load': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '>': 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: References: <422dd712-2bc5-4c48-b6ca-62face5320c7@googlegroups.com> Date: Mon, 10 Jun 2013 08:51:56 +0100 Subject: Re: Redirecting to a third party site with injected HTML From: =?ISO-8859-1?Q?F=E1bio_Santos?= To: Guy Tamir 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --047d7bb042ccfbf91204dec80d66 Content-Type: text/plain; charset=ISO-8859-1 On 10 Jun 2013 07:58, "Guy Tamir" 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. --047d7bb042ccfbf91204dec80d66 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


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 th= e DOM easily i thought there might be an way to do so from the server befor= e 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 hav= e 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 ima= ges and other resources' URLs have to be rewritten if they are relative= URLs.

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

--047d7bb042ccfbf91204dec80d66--