home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / alt / hackers / 1404 < prev    next >
Encoding:
Text File  |  1992-09-10  |  3.9 KB  |  114 lines

  1. Newsgroups: alt.hackers
  2. Path: sparky!uunet!caen!sol.ctr.columbia.edu!startide.ctr.columbia.edu!seth
  3. From: seth@startide.ctr.columbia.edu (Seth Robertson)
  4. Subject: Re: Hack Question...
  5. Organization: Columbia University Center for Telecommunications Research
  6. References: <1992Sep10.213216.23658@ctr.columbia.edu>
  7. Message-ID: <1992Sep11.081606.5286@ctr.columbia.edu>
  8. Sender: news@ctr.columbia.edu (The Daily Lose)
  9. Approved: <god@ctr.columbia.edu>
  10. Date: Fri, 11 Sep 1992 08:16:06 GMT
  11. X-Posted-From: startide.ctr.columbia.edu
  12. X-Posted-Through: sol.ctr.columbia.edu
  13. Lines: 99
  14.  
  15. In article <1992Sep10.213216.23658@ctr.columbia.edu> foo@bar.edu writes:
  16.  
  17. >Anyone know how to get rid of the little annoying "X-Posted-From:"
  18. >line that sol.ctr.columbia.edu likes to append to it's posts...It's
  19. >REALLY annoying.
  20.  
  21. Speaking as the person who implemented those restrictions, I know of
  22. no way to defeat those header lines for articles POSTed via NNTP.  The
  23. system name is determined from the TCP/IP connection via
  24. getsockname(2) and is *APPENDED* to the headers in anne.jones via
  25. defhdrs.awk.  It is the appending this which makes it hard to defeat
  26. since if you try to override the headers like you normally do for all
  27. other headers, they would just appear twice, making it utterly obvious
  28. to all and asundry that you are an idiot.
  29.  
  30. The backup to this tracing is a mostly duplicate article which is
  31. posted locally.  Yes, I DO make copies of all articles which are
  32. posted.  I like to maintain an idea of what my site is being used for,
  33. but I have never used, and hopefully will never be forced to use, this
  34. information to restrict sites.
  35.  
  36. Now if you want to know *why* I did this, it is for two reasons.  The
  37. first, and by far the most important, is that I got fed up with people
  38. forging articles from my site; articles which were so annoying to
  39. other people that I was asked to trace them, articles which were
  40. boasts (to this very newsgroup, if I am not mistaken) saying that it
  41. was impossible for the articles to be traced (it is this last which
  42. annoyed me the most since a lot of even stupider idiots fingered sol
  43. and since I was logged on, assumed that I posted the article and
  44. bombarded me with mail).  The other reason is somewhat less important:
  45. load.  Sol is being greatly overloaded with people reading and posting
  46. news articles (401 sites reading 119630 articles) and I will be ****ed
  47. if I am going to add to this load by making it easy for people to
  48. forge articles from my site.
  49.  
  50. This is actually curiously anomalous since I support the idea of people
  51. being able to post anonymously.  There are certainly good reasons why
  52. someone might want to do this, but unfortuantly the idiot factor
  53. overwhelmed me.  In any case, there are still plenty of easy ways to
  54. post anonymous without using sol (and no, I will not tell you unless
  55. you are from my site, ask your own sysadmin.)
  56.  
  57. If any of you are still with me, I would like to take this time to
  58. urge you to lay off sol.  The remote news reader loads imposed on it
  59. recently, due an unfortunate posting, will probably force me to (very
  60. reluctantly) impose maximum usage limits on sol.
  61.  
  62. ObHack1:  The hack above--contact me if you are a news admin running Cnews
  63.       and would like my changes.
  64.  
  65. ObHack2:  My two favorite subroutines from Xkernel 2.0 (yes, I am
  66.       working on it; expect to see it sometime after the Epoch :-)
  67.       They are small hacks, but ``No hack is too small'' :-)
  68.  
  69. print_pattern ()
  70. {
  71.  [...]
  72.  
  73.  echo "Possible choices include:"
  74.  for f in $1*
  75.   do
  76.    c=`echo "$f" | sed s/$1//`
  77.    echo -n "$c    "
  78.   done
  79.  echo
  80.  echo
  81. }
  82.  
  83.  
  84. check_pattern ()
  85. {
  86.  [...]
  87.  
  88.  ok=0
  89.  for f in $1*
  90.   do
  91.    if [ "$1$2" = "$f" ]
  92.     then
  93.      ok=1
  94.      break
  95.     fi
  96.   done
  97.  
  98.  if [ $ok -ne 1 ]
  99.   then
  100.    cat << EOF
  101. WARNING! This choice is not included in this distribution!
  102. If you answered correctly, you will have to generate the
  103. information yourself.
  104.  
  105. EOF
  106.    ask_to_die
  107.   fi
  108. }
  109.  
  110.  
  111.  
  112.                                         -Seth Robertson
  113.                                          seth@ctr.columbia.edu
  114.