Re: Filter php page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/07/06, Jay Blanchard <jblanchard@xxxxxxxxxx> wrote:

[snip]
can I create a script that will search a php page for iframes.  And
have it check the path of the iframe, If the iframe is listed as bad
don't show. (list I make)

Trying to do something with virus like through an iframe.

I don't really know where to start looking for help.
[/snip]

Best thing to do is open the file, use regular expressions to capture all
text that begins and ends with 'iframe', parse that for src=url, attempt to
get the url, if it fails it's bad and you can rewrite the string back into
the file, perhaps adding a css class such as 'class=bad' that has display
set to none.


So, have a look at files, regular expressions and css.




--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux