Forum Moderators: phranque
The advice there (limiting to POST and GET; and, setting Apache to not proxy) stops _my_ servers from being spam _sources_.
That is "POST 111..222.333.111:25" and "POST 111.222.333.112:25" (both my servers) fail, but I am less sure that requests to third parties are failing:
Whether "POST 111.222.334.111:25" (requested to one of my servers) succeeds seems to depend on the configuration of the 334.111 server over which I have no control.
Arguably its not my fault, but I don't like the idea of being a relay for this sort of junk.
I'm pretty much a newbie, but can find nothing on the Web about this, nor have my readings of mod_rewrite, iptables, etc. shown any possible routes ...
Can anyone help?
[IP addreses purely fictious!]
Thanks
RewriteCond %{REQUEST_URL} \:25(/)?$
RewriteRule .* - [F]
which would seem to answer the point.
(jdMorgan gives a longer suggestion on the same thread.)
Before doing it (editing the Apache config file) I'd appreciate details of any field experiences ....
Welcome to WebmasterWorld [webmasterworld.com]!
> Before doing it (editing the Apache config file) I'd appreciate details of any field experiences ....
The code I posted was taken off a working server -- one of several successfully using that code. However, I would certainly not recommend that you use it (or any other solution given here) if you have any doubts about how it works.
Jim
jdMorgan, i was looking for you to come by there (hopefully)... then i lost track of the thread... guess its a good thing that i suggested it also be brought into this forum ;)
JD's code works
of course the log file is now lit up like a Christmas tree with 403's
But it stopped cold the problem and still allows the wanted visitors to get through without any glitches.
After thought question?
Is a custom 403 page a bad idea?
I had one for a while but went back to just the generic 403 because one of the ips I had trouble with thought it would be fun to autoreload the 403 page for 5 hours one night.
The most likely cause of this problem is that you did not make allowances to permit banned visitors to access your custom 403 page. Thus, when they went to fetch the 403 page, they got another 403, so tried to fetch the 403 page, got another 403, etc. I posted a warning note about just this problem in another thread today.
Jim
(*Still deluged with [*...] requests --who writes these 'exploits'?)
Thanks again, reseaum