Lexxuk
08-08-04, 21:47
People who know me know that I detest with a vengance, Spam, I hate the stuff cluttering up my inbox like its something I'd like inviting me to buy prescription medication or to enlarge my penis, like as if I'd need either of them.. ok, maybe viagra could come in handy and your penis can never be too big but still.
Anyhow, I find myself now with an ethical debate, as you guessed I use Linux a bit now, but for a long time I've been using Apache/MySQL and PHP, I need more practice with it, but the main point there is Apache which is a web server!
Under Linux however, its a little bit more, it has a stress test programme called (scriptname), which is designed to stress test your apache installation, naturally.
So if I type in.. (as su/root)
(scriptname) -n 1000 -c 1000 http://localhost I get..
[root@localhost david]# (scriptname) -n 1000 -c 10000 http://localhost/
This is (scriptname), Version 2.0.40-dev <$Revision: 1.121.2.4 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
socket: Too many open files (24)
[root@localhost david]# (scriptname) -n 1000 -c 1000 http://localhost/
This is (scriptname) Version 2.0.40-dev <$Revision: 1.121.2.4 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software: Apache-AdvancedExtranetServer/2.0.48
Server Hostname: localhost
Server Port: 80
Document Path: /
Document Length: 7034 bytes
Concurrency Level: 1000
Time taken for tests: 6.703514 seconds
Complete requests: 1000
Failed requests: 15
(Connect: 0, Length: 0, Exceptions: 15)
Write errors: 0
Total transferred: 7765459 bytes
HTML transferred: 7463074 bytes
Requests per second: 149.18 [#/sec] (mean)
Time per request: 6703.514 [ms] (mean)
Time per request: 6.704 [ms] (mean, across all concurrent requests)
Transfer rate: 1131.20 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 127 819.2 0 6006
Processing: 44 835 974.8 503 3540
Waiting: -15 0 1.0 0 0
Total: 139 963 1220.3 505 6430
Percentage of the requests served within a certain time (ms)
50% 505
66% 535
75% 546
80% 561
90% 3384
95% 3417
98% 3540
99% 6307
100% 6430 (longest request)
Which means its hit my server with 1000 requests on my webserver, which being localhost means its very fast. Now the people who spend me Spam are the worst form of people I can imagine, trying to make money out of sending unsolicited email, and using false email addresses with the email on their site not working (obviously to prevent spam :rolleyes: ) so no way of telling them "FOAD".
Now they do this for money, and just money, if they send out 1,000,000 emails and 5 people actually respond they make a profit, email is free after all, thats why its so valuable to them.
Now, this programme ab, if I were to set up a little script, which ran:
(scriptname) -c 1000 -n 1000 http://spamsite/
and it did that for 9 hours solid, thats roughly (with 512k DSL, I'm getting 1MB soon) just over 2GB worth of pages transfered, which will incur costs on the spammer of course, and who knows, maybe take them over their monthly limit on transfers.
So the ethical dilemma, so I really use this programme to hit the websites of people that spam me, probably costing them money (whilst costing me nothing but electricity, I'm on an uncapped DSL) or should I just set up my email address to hit a blackhole (any email sent to that email address dies and is never delivered anywhere).
Anyhow, I find myself now with an ethical debate, as you guessed I use Linux a bit now, but for a long time I've been using Apache/MySQL and PHP, I need more practice with it, but the main point there is Apache which is a web server!
Under Linux however, its a little bit more, it has a stress test programme called (scriptname), which is designed to stress test your apache installation, naturally.
So if I type in.. (as su/root)
(scriptname) -n 1000 -c 1000 http://localhost I get..
[root@localhost david]# (scriptname) -n 1000 -c 10000 http://localhost/
This is (scriptname), Version 2.0.40-dev <$Revision: 1.121.2.4 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
socket: Too many open files (24)
[root@localhost david]# (scriptname) -n 1000 -c 1000 http://localhost/
This is (scriptname) Version 2.0.40-dev <$Revision: 1.121.2.4 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Finished 1000 requests
Server Software: Apache-AdvancedExtranetServer/2.0.48
Server Hostname: localhost
Server Port: 80
Document Path: /
Document Length: 7034 bytes
Concurrency Level: 1000
Time taken for tests: 6.703514 seconds
Complete requests: 1000
Failed requests: 15
(Connect: 0, Length: 0, Exceptions: 15)
Write errors: 0
Total transferred: 7765459 bytes
HTML transferred: 7463074 bytes
Requests per second: 149.18 [#/sec] (mean)
Time per request: 6703.514 [ms] (mean)
Time per request: 6.704 [ms] (mean, across all concurrent requests)
Transfer rate: 1131.20 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 127 819.2 0 6006
Processing: 44 835 974.8 503 3540
Waiting: -15 0 1.0 0 0
Total: 139 963 1220.3 505 6430
Percentage of the requests served within a certain time (ms)
50% 505
66% 535
75% 546
80% 561
90% 3384
95% 3417
98% 3540
99% 6307
100% 6430 (longest request)
Which means its hit my server with 1000 requests on my webserver, which being localhost means its very fast. Now the people who spend me Spam are the worst form of people I can imagine, trying to make money out of sending unsolicited email, and using false email addresses with the email on their site not working (obviously to prevent spam :rolleyes: ) so no way of telling them "FOAD".
Now they do this for money, and just money, if they send out 1,000,000 emails and 5 people actually respond they make a profit, email is free after all, thats why its so valuable to them.
Now, this programme ab, if I were to set up a little script, which ran:
(scriptname) -c 1000 -n 1000 http://spamsite/
and it did that for 9 hours solid, thats roughly (with 512k DSL, I'm getting 1MB soon) just over 2GB worth of pages transfered, which will incur costs on the spammer of course, and who knows, maybe take them over their monthly limit on transfers.
So the ethical dilemma, so I really use this programme to hit the websites of people that spam me, probably costing them money (whilst costing me nothing but electricity, I'm on an uncapped DSL) or should I just set up my email address to hit a blackhole (any email sent to that email address dies and is never delivered anywhere).