| action | rabeldable checks perldoc for pf |
| rabeldable | checks perldoc for pf |
| hobbs | haha |
| revdiablo | madflojo: You just pasted part of your code. You did not make a standalone example. Unless I missed something |
| merlyn | heh - that's an openbsd packet filter |
| JasonKing | madflojo, the previous paste doesn't standalone - it doesn't have the File::Path and File::Copy uses in it - doesn't have the assignment to $filedir, etc.. |
| rabeldable | thanks merlyn |
| merlyn | you can quickly add IPs to block |
| rabeldable | i'd rather not use any additional modules or apps |
| madflojo | ahh i getcha |
| rabeldable | I just want to keep a running list |
| madflojo | uhm so.. |
| revdiablo | madflojo: By standalone I mean a chunk of code that you can put into a new file and run it, and it has the same problem as your bigger program |
| merlyn | jifty SVN - someone checked in a Keynote presentation :) maybe you just want a database then see DBD::SQLite |
| JasonKing | madflojo, it died on the -d test didn't it. |
| rabeldable | It should not get too big, I can probably even keep it in memory |
| merlyn | or DBM::Deep - the sequel (sponsored by Stonehenge) |
| madflojo | no but actually i think the directory might have existed let me check |
| hobbs | or Pg, which has an ipv4 datatype with cidr functions :) |
| revdiablo | hobbs: God, yes. I love postgresql's data types. |
| merlyn | even better! |
| JasonKing | This is where I pretend to be surprised that he is only checking now. |
| revdiablo | JasonKing: We are debugging through the end of a straw. ;) |
| merlyn | and it blows! |
| JasonKing | :) |
| madflojo | heh so it didnt die and ls: /home/madflojo/Downloads/usenet_mp3/queued/Other/Eminem_s/The_Marshall_Mathers_LP/: No such file or directory the directory doesnt exist so that means that if statement is not acting like I thought it was supposed to.. |
| revdiablo | madflojo: Please to be making a standalone example. It really will be the best thing you can do. |
| JasonKing | Agreed. |
| rabeldable | so here is the pseudo code -> apache starts, opens file, reads blocked IP's into hash, at anytime when a bad IP gets blocked an entry gets added to has and to file |
| madflojo | aiight |