4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Blocking IP by the "deny from" command
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
FS
Junior WebHelper
Junior WebHelper


Joined: 10 Feb 2002
Posts: 2

PostPosted: Sun Feb 10, 2002 1:20 pm (22 years, 2 months ago) Reply with QuoteBack to Top

Hi,

I'd like to block a person who keeps spamming my message board and actually I thought the easiest way to do this is htaccess.
However, no matter what I try, it doesn't work.
The file (located in the base directory) looks as follows:

ErrorDocument 400 /errors/400.htm
ErrorDocument 401 /errors/401.htm
ErrorDocument 403 /errors/403.htm
ErrorDocument 404 /errors/404.htm
ErrorDocument 500 /errors/500.htm
deny from 66.66.

The custom error pages work fine, but as soon as I add the "deny from" command (in this example to block the IP range 66.66.xx.xx), I get an internal server each time I try to access any of the pages of my site.
Can someone please tell me what's wrong with it? (The server is a Apache-AdvancedExtranetServer/1.3.20)

Thanks in advance
FS
OfflineView User's ProfileFind all posts by FSSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sun Feb 10, 2002 3:01 pm (22 years, 2 months ago) Reply with QuoteBack to Top

Is mod_access installed on your server?

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Justin
4WebHelp Addict
4WebHelp Addict


Joined: 07 Jan 2002
Posts: 1060

PostPosted: Sun Feb 10, 2002 3:15 pm (22 years, 2 months ago) Reply with QuoteBack to Top

whats the difference between your bog standard apache server (1.3.20) like I have and an Apache-AdvancedExtranetServer/1.3.20?
OfflineView User's ProfileFind all posts by JustinSend Personal MessageSend email
FS
Junior WebHelper
Junior WebHelper


Joined: 10 Feb 2002
Posts: 2

PostPosted: Sun Feb 10, 2002 8:48 pm (22 years, 2 months ago) Reply with QuoteBack to Top

It's not my own server, but a Danish FWP, so I don't really know any details about the server configuration.
I just tested the "deny" command on F2S and it doesn't seem to work there either... Crying or Very sad

Seems I have to solve the problem with PHP... *sigh*
OfflineView User's ProfileFind all posts by FSSend Personal Message
Ben
Senior WebHelper
Senior WebHelper


Joined: 08 Jan 2002
Posts: 431
Location: Liverpool - UK

PostPosted: Sun Feb 10, 2002 9:42 pm (22 years, 2 months ago) Reply with QuoteBack to Top

do they proxy everything?

I wouldnt expect it to work on F2S due to their squid caches changing everything to http_x_forwarded_for

________________________________
Ben Scott

Red and White Kop
OfflineView User's ProfileFind all posts by BenSend Personal MessageSend emailVisit Poster's Website
roly
Senior WebHelper
Senior WebHelper


Joined: 08 Jan 2002
Posts: 150

PostPosted: Mon Feb 11, 2002 5:17 am (22 years, 2 months ago) Reply with QuoteBack to Top

Apache-AdvancedExtranetServer/1.3.20 is just a souped up verion of Apache. NVPHost also use it.
OfflineView User's ProfileFind all posts by rolySend Personal MessageSend email
renegade
Junior WebHelper
Junior WebHelper


Joined: 16 Mar 2002
Posts: 2

PostPosted: Wed Mar 20, 2002 8:38 pm (22 years, 1 month ago) Reply with QuoteBack to Top

I'm sure you've already for the answer, but I'm replying for the benifit of others who might have the same problem Smile


--------------------------------
Try this as your .htaccess file:
--------------------------------

<Limit GET POST>
order allow,deny
deny from xxx.xxx.xxx.xxx
deny from yyy.yyy.yyy.yyy
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
ErrorDocument 400 /errors/400.htm
ErrorDocument 401 /errors/401.htm
ErrorDocument 403 /errors/403.htm
ErrorDocument 404 /errors/404.htm
ErrorDocument 500 /errors/500.htm
OfflineView User's ProfileFind all posts by renegadeSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Mar 20, 2002 8:39 pm (22 years, 1 month ago) Reply with QuoteBack to Top

Yeah, but that doesn't help if you don't have mod_access installed...

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
roly
Senior WebHelper
Senior WebHelper


Joined: 08 Jan 2002
Posts: 150

PostPosted: Sat Apr 13, 2002 3:38 am (22 years ago) Reply with QuoteBack to Top

Apache-AvancedExtranetServer Web Site: http://www.advx.org
OfflineView User's ProfileFind all posts by rolySend Personal MessageSend email
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.215043 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme