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?
A proxy-like website fetching and displaying
Moderator: General Moderators
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: A proxy-like website fetching and displaying
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
I believe there is a apache module that does this, I dunno how it deals with CSS/JS relative paths