A proxy-like website fetching and displaying

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
ubax
Forum Newbie
Posts: 11
Joined: Wed Jun 10, 2009 10:45 am

A proxy-like website fetching and displaying

Post by ubax »

Is there a way to easily fetch a website, parse it and then display it on your own server as if it was viewed from the original?

This is necessary for being in control of the content that is being displayed - before displaying, content is filtered.

One could fetch the website and the absolutize all relative URLs, but it still creates multiple problems - relative links generated by JS and CSS and so forth.

Any ideas, directions?
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: A proxy-like website fetching and displaying

Post by alex.barylski »

You pretty much nailed the requirements, and yes it's mostly possible, minus the relative JS paths.

I believe there is a apache module that does this, I dunno how it deals with CSS/JS relative paths
Post Reply