10.xhtml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * <https://y.st./>
  4. * Copyright © 2016 Alex Yst <mailto:copyright@y.st>
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <https://www.gnu.org./licenses/>.
  18. **/
  19. $xhtml = array(
  20. 'title' => 'Session identifiers',
  21. 'body' => <<<END
  22. <p>
  23. I have run into another issue with the spider.
  24. This time, it is indexing $a[URI]s that are identical aside from session $a[ID]s as separate pages, then requesting each of these pages to search for hyperlinks on.
  25. Technically, this is the correct behavior, but in practice, this is both a waste of my disk space and the other server&apos;s resources.
  26. I kind of wonder if the logs will be read and the server administrator will think that it was some sort of attempted $a[DDoS] attack.
  27. After all, the spider did just request the same page potentially hundreds of times.
  28. I need to add a feature that reads and parses the query string of $a[URI]s that it finds.
  29. I can then tell it to strip out certain variables, such as <code>sid</code>.
  30. </p>
  31. <p>
  32. I found a function that is impossible for me to map correctly to an object method: <a href="https://secure.php.net/manual/en/function.fscanf.php"><code>\\fscanf()</code></a>.
  33. The problem is that it takes an unlimited number of arguments that are passed be reference.
  34. I ended up having to include only the minimal functionality.
  35. </p>
  36. <p>
  37. Cyrus looked into another option for his Boy Scout project, this time, work at a cat shelter.
  38. However, it turns out that the work that they want done is illegal.
  39. They want a wall torn down so that a door can be installed, which is all well and good, but they want to do it on the down low so that they can avoid getting a permit for it.
  40. Even if Cyrus wanted to help them out, he would never get it approved as his project.
  41. The project needs to be completely legal.
  42. </p>
  43. <p>
  44. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  45. </p>
  46. END
  47. );