Hello everyone,
I am trying to implement a script that would open other web pages (just like a web-proxy). There's nothing utterly difficult in this task, but I'd also like to add functionality to monitor and filter all sources of data passing through my proxy-page.
So that if I open google.co.uk I'd also like to log where the images and other things are being loaded from (e.g. http://www.google.co.uk/intl/en_uk/images/logo.gif...), so that I could block something from that list. Images are a bad example, actually, I understand that I could just find all "img" tags in the html source... but imagine that my page loads an swf object or some other script that connects to a 3rd-party source from within. How can I know that?
So in other words I am trying to implement something similar to session monitoring in Fiddler.
Is this possible?
How to monitor active connections & sessions?
Moderator: General Moderators
-
Miscellous
- Forum Newbie
- Posts: 2
- Joined: Thu Aug 13, 2009 7:14 am
Re: How to monitor active connections & sessions?
This is not something within the realm of PHP... this is client-side.
Now, if you are making a web-based proxy that goes through and rewrites all the URLs in the body of the page, then you can handle the images and other page resources, like you said. But if you want to do this with a SWF file, then you'd need to read this file and change its URLs as well, which isn't possible.
Now, if you are making a web-based proxy that goes through and rewrites all the URLs in the body of the page, then you can handle the images and other page resources, like you said. But if you want to do this with a SWF file, then you'd need to read this file and change its URLs as well, which isn't possible.
-
Miscellous
- Forum Newbie
- Posts: 2
- Joined: Thu Aug 13, 2009 7:14 am
Re: How to monitor active connections & sessions?
Yep, after a few unsuccessful experiments I came to the same conclusion. 
Thanks for your reply, I'll try to think something else up.
Thanks for your reply, I'll try to think something else up.