Networking Forums

Networking Forums > Computer Networking > Linux Networking > dynamic web page rewrite

Reply
Thread Tools Display Modes

dynamic web page rewrite

 
 
jhead@ivytech.edu
Guest
Posts: n/a

 
      12-21-2005, 07:23 PM
Perhaps someone would have some ideas how best to do the following...

I am wanting to rewrite HTML tags for any pages coming from a
particular site calendering site that a department at my college set up
with an off site service (applying my style sheet).

A little bit of background for better understanding - the
service/software they use is utilitarian and leaves aesthetics with
something to be desired - not the best professional image.

When people view the event calender pages, I want them to see it in my
rewritten version, with my style sheet applied.

I have explored using a http proxy like FilterProxy to rewrite the
pages, but I'm not sure how to pull pages through it with out having to
have the users browsers configured.
I have a LAMP server running SUSE at my disposal.

Is there a way, via a link, to send a request to a site through a
proxy?
E.g The user clicks on the link that has the effect of the proxy
requesting the off site page and replying with the altered version?

Yes, I could have them switch calenders - but I wanted to explore this
option.
Any ideas on how this could be pulled off?

 
Reply With Quote
 
 
 
 
dave
Guest
Posts: n/a

 
      12-22-2005, 05:34 PM
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Perhaps someone would have some ideas how best to do the following...
>
> I am wanting to rewrite HTML tags for any pages coming from a
> particular site calendering site that a department at my college set up
> with an off site service (applying my style sheet).
>
> A little bit of background for better understanding - the
> service/software they use is utilitarian and leaves aesthetics with
> something to be desired - not the best professional image.
>
> When people view the event calender pages, I want them to see it in my
> rewritten version, with my style sheet applied.
>
> I have explored using a http proxy like FilterProxy to rewrite the
> pages, but I'm not sure how to pull pages through it with out having to
> have the users browsers configured.
> I have a LAMP server running SUSE at my disposal.
>
> Is there a way, via a link, to send a request to a site through a
> proxy?
> E.g The user clicks on the link that has the effect of the proxy
> requesting the off site page and replying with the altered version?
>
> Yes, I could have them switch calenders - but I wanted to explore this
> option.
> Any ideas on how this could be pulled off?


A server side script that pulled the code from the calander site and (a)
replaced any relative image etc... links appropriately and (b) replaced the
styles etc...

Messy but possible.

The client then requests from your server which in turn requests the code
from the third party, alters it on the fly and provides it to the client.

Or someone might have a better and/or client based solution.

HTH,

Dave.


 
Reply With Quote
 
Dan Miller
Guest
Posts: n/a

 
      12-23-2005, 10:01 PM
(E-Mail Removed) wrote in news:1135196595.390912.326770
@o13g2000cwo.googlegroups.com:

> Perhaps someone would have some ideas how best to do the following...
>
> I am wanting to rewrite HTML tags for any pages coming from a
> particular site calendering site that a department at my college set up
> with an off site service (applying my style sheet).
>
> A little bit of background for better understanding - the
> service/software they use is utilitarian and leaves aesthetics with
> something to be desired - not the best professional image.
>
> When people view the event calender pages, I want them to see it in my
> rewritten version, with my style sheet applied.
>
> I have explored using a http proxy like FilterProxy to rewrite the
> pages, but I'm not sure how to pull pages through it with out having to
> have the users browsers configured.
> I have a LAMP server running SUSE at my disposal.
>
> Is there a way, via a link, to send a request to a site through a
> proxy?
> E.g The user clicks on the link that has the effect of the proxy
> requesting the off site page and replying with the altered version?
>
> Yes, I could have them switch calenders - but I wanted to explore this
> option.
> Any ideas on how this could be pulled off?
>
>

silly me, Google is my friend, and I keep forgetting that...
Quoted from the web:

The routing table is set up via the configuration files
/etc/sysconfig/network/routes and /etc/sysconfig/network/ifroute-*. All
the static routes required by the various system tasks can be entered in
the /etc/sysconfig/network/routes file: routes to a host, routes to a
host via a gateway, and routes to a network. For each interface that
needs individual routing, define an additional configuration file:
/etc/sysconfig/network/ifroute-*. Replace * with the name of the
interface. The entries in the routing configuration files look like this:

DESTINATION GATEWAY NETMASK INTERFACE [ TYPE ] [ OPTIONS ]
DESTINATION GATEWAY PREFIXLEN INTERFACE [ TYPE ] [ OPTIONS ]
DESTINATION/PREFIXLEN GATEWAY - INTERFACE [ TYPE ] [ OPTIONS ]

To omit GATEWAY, NETMASK, PREFIXLEN, or INTERFACE, write - instead. The
entries TYPE and OPTIONS may just be omitted.

The route's destination is in the first column. This column may contain
the IP address of a network or host or, in the case of reachable name
servers, the fully qualified network or host name.

The second column contains the default gateway or a gateway through which
a host or a network can be accessed. The third column contains the
netmask for networks or hosts behind a gateway. The mask is
255.255.255.255, for example, for a host behind a gateway.

The last column is only relevant for networks connected to the local host
such as loopback, ethernet, ISDN, PPP, and dummy device. The device name
must be entered here.



----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
domain rewrite Eggert Ehmke Linux Networking 1 10-17-2007 07:37 AM
Intern apache mod rewrite URL forward or other solution??? joealey2003@yahoo.com Linux Networking 3 05-07-2007 09:03 PM
Dynamic IP Updater, please help decipher mistake on web page instructions Ohmster Linux Networking 0 09-17-2006 08:25 AM
ddclient to update dynamic DNS entries at a dynamic DNS service Larry Cohen Linux Networking 1 09-12-2004 01:47 AM
ip rewrite on my firewall? G?ranBo Linux Networking 0 11-11-2003 02:40 PM



1 2 3 4 5 6 7 8 9 10 11