note 92686 rejected from function.highlight-string by danbrown
| From: | danbrown@php.net | Date: | Tue, 04 Aug 2009 17:09:33 +0000 |
| Subject: | note 92686 rejected from function.highlight-string by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-159099@lists.php.net to get a copy of this message | ||
Note Submitter: LOTRColumbia at Yahoo dot com
----
Is there a way to BLOCK someone from using highlight_string being used on your pages?
What I mean is this:
(Code)
<?php
$a = min(eight, four);
echo "::::" . $a . "::::";
// Get a file into an array
$lines = file('ur site URL');
// Loop through our array, show HTML source as HTML source; and line numbers too.
echo('<table border=0 cellpadding=0 cellspacing=0>');
foreach ($lines as $line_num => $line) {
echo('<tr>');
echo('<td bgcolor = "#cccccc">');
echo('<code>' . ($line_num + 1) . '</code>');
echo('</td>');
echo('<td>');
highlight_string($line);
echo('</td>');
echo('</tr>');
}
?>
Will Pull the following:
All the code for the particular page. This can cause a huge security flaw. I just want to be able
to block this from being used on my site. If you can help PLEASE do.