Redirecting to a third party site with injected HTML

Fábio Santos fabiosantosart at gmail.com
Mon Jun 10 03:51:56 EDT 2013


On 10 Jun 2013 07:58, "Guy Tamir" <guytamir1 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130610/c3a09832/attachment.html>


More information about the Python-list mailing list