Author | Comment |
Barrett Administrator
 Posted: 2 Mar 2003 19:29 GMT Total Posts: 1676 | we had some trouble with someone who will remain nameless downloading his files over and over so i added a little IP logger that logs the most recent 3 IP addresses that downloaded each file and when someone downloads something it checks with those and if it's the same guy as one of the most recent 3 IP's it won't count the download. i'll need some testers for this one though cus i did a lot of stuff and i only have one IP address to test it.
--- -Barrett A |
KingSoft Marine Posted: 2 Mar 2003 19:47 GMT Total Posts: 27 | I apologize. Although Barret is kind not to mention me. I would Like to take full responsibility for the downloads, and the ensueing crash. punish me, do not punish my company.
Thank You
I'm Sorry |
Barrett Administrator
 Posted: 2 Mar 2003 20:03 GMT Total Posts: 1676 | lol, calm down. i've done it before on ticalc.org, and the only reason tankers is on top is cus i cheat by making the link from education.ti.com go to its page.
don't worry 'bout it.
and don't do it again (cus you can't :) )
--- -Barrett A |
Barrett Administrator
 Posted: 2 Mar 2003 20:07 GMT Total Posts: 1676 | btw, the way i caught you was quite funny... i was testing the new dl/day thingy for files, and all of the sudden i saw that yours were at like 100 and 150, so i refreshed the page and then they went up to 175 and 200... i kept refreshing and your downloads kept going up and up...
good thing too, cus now no one else will be able to do that, and file stats will be more accurate
--- -Barrett A |
zkostik Carrier
 Posted: 2 Mar 2003 20:46 GMT Total Posts: 2486 | yeah, very good thing indeed. i was thinking of something like that but never really got time to do that. anyway, its nice that you did. this should sure decrease amount of bs and let people test their links safely. btw, what's that thingy added to file stats? how does it work...i'm just too lazy to go into the script and see for myself.
--- 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 |
Barrett Administrator
 Posted: 2 Mar 2003 20:48 GMT Total Posts: 1676 | which thingy? the DL/Day?
if you're talking about DL/Day, that's the average amount of downloads that file gets per day since the date it was added. it's accurate down to the second. The one on the author page is similar, it adds up all the time each of their files has been available and does that with their total downloads.
--- -Barrett A |
zkostik Carrier
 Posted: 2 Mar 2003 20:49 GMT Total Posts: 2486 | oh, just as a sidenote. i think its about time to implement daily download counter for files. email me B and we'll discuss that. oh btw, you accidently put you email as zinearety on your last news article.
--- 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 |
Barrett Administrator
 Posted: 2 Mar 2003 20:51 GMT Total Posts: 1676 | that was no accident... i told him to post that article but he refused, so to make him seem like he's not dead i posted from his name. pretty funny...
also, if anyone wants to see the cool text file with all the IP addresses, it's right here
and about the daily stuff, i can do that sometime this week, and i'll put those in the same file as the IP addresses, as well as moving all time downloads to that file to make database wipouts less frequest (happened again today)
--- -Barrett A |
zkostik Carrier
 Posted: 2 Mar 2003 21:19 GMT Total Posts: 2486 | ough, seems that i missed a flock somewhere. having stats in a separate files is also a good way to organize stuff. btw, did you make a parser for a list if IP's yourself B? looks pretty neat.
Edit: btw B, how come there are copies of same IP? i thought you'd only keep one copy of each IP per file ID.
[Edited by zkostik on 03-Mar-03 07:41]
--- 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 |
KingSoft Marine Posted: 3 Mar 2003 08:43 GMT Total Posts: 27 | This is for Zkostik. I used no progam. I right clicked on the link to the file, clicked properties, and copyed the link. I then put the link in my browser bar and HELD enter. This cuased the equivilant on about 3 to 12 clicks a second, every second I held the link. The first Time I held it it was for about 30 seconds and it disconnected my internet and crashed my computer.
Don't try it. |
Digital Guardian
 Posted: 3 Mar 2003 12:15 GMT Total Posts: 1051 | If you want to crash a site in a really simple way just get a dozen or so to try that. |
Barrett Administrator
 Posted: 3 Mar 2003 14:51 GMT Total Posts: 1676 | Edit: btw B, how come there are copies of same IP? i thought you'd only keep one copy of each IP per file ID.
yeah that's probably what i should do, but it doesn't really matter. no one can easily alter the stats now, and that was my goal.
[Edited by Barrett on 03-Mar-03 23:51]
--- -Barrett A |
KingSoft Marine Posted: 3 Mar 2003 18:27 GMT Total Posts: 27 | I think Barret asked me something about copies of IP's on the file download. See when I held it that much the computer only brought A dialogue box once I stopped, there to my computer it seemed I had only clicked once, but to the site it may have seem that I clicked 100 times.
For Digital, (on your last comment), who needs 10 guys? it works with just 1!
[Edited by KingSoft on 04-Mar-03 03:30] |
KingSoft Marine Posted: 3 Mar 2003 18:31 GMT Total Posts: 27 | This topic created quite a stir! |
zkostik Carrier
 Posted: 3 Mar 2003 22:45 GMT Total Posts: 2486 | lol! well, db wouldn't get wiped out if all flocks were present. flocks prevent db from being written to while another instance of script accesses it. so, if two requests come at the same time, only one will use the db at that time and other will wait. if flock is missing, db will get wiped out. i'll looks thru the code again just to make sure everything's okay. sometimes a typo can prevent this from working and due to Perl's error forgiveness this doesn't not always crash the program. this was actually a good test and it pointed out the fact that there are still some bugs left. so, its not really a problem at all coz now we keep daily backups.
--- 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 |