Web Hosting Talk







View Full Version : Block a host with httpd.conf


Cael
12-25-2001, 12:13 PM
How can I block a host in httpd.conf? What should I type etc? Please tell me....

Thank you.

priyadi
12-25-2001, 01:45 PM
Originally posted by Donovan
How can I block a host in httpd.conf? What should I type etc? Please tell me....

Thank you.


<Directory /foo/bar/>
Order Deny,Allow
Deny from somehost.org
Allow from all
</Directory>


You can also specify an IP address or a portion of it. Consult documentation at http://httpd.apache.org/docs/mod/mod_access.html for more information.

bobcares
12-26-2001, 07:27 AM
Hi!
Priyadi is very correct in the method mentioned.
I'd like to add here that blocking this way would block IP's/Domain for a particlar directory only.
I guess you can also try ipchains to block all services for a particular domain/IP.
Have a great day :)

regards
amar

Cael
12-26-2001, 08:40 AM
What need I do to try IPchains? I am trying to block someone from spamming via my server. Somehow the domain don't have any account on my server. So it's kind of weird.

If anyone have information on prontomail.com , please kindly let me know. Thank you.

bobcares
12-26-2001, 09:05 AM
Hi!
if someone is using your mail server, then the problem is with your server being an open SMTP server. All you have to do is just close the SMTP services to outside users.
Have a great day :)

regards
amar

Cael
12-27-2001, 05:18 AM
A user was using some scripts which utilize sendmail on my server to send spams for prontomail.com, which is not hosted on my server. I terminated this user's account and things are fine now.

priyadi
12-27-2001, 08:43 AM
Originally posted by Donovan
A user was using some scripts which utilize sendmail on my server to send spams for prontomail.com, which is not hosted on my server. I terminated this user's account and things are fine now.

That would be the correct course of action. It has nothing to do with host blocking in httpd.conf or ipchains though.