Author |
Message |
FS
Junior WebHelper
Joined: 10 Feb 2002
Posts: 2
|
Posted:
Sun Feb 10, 2002 1:20 pm (22 years, 2 months ago) |
|
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 |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sun Feb 10, 2002 3:01 pm (22 years, 2 months ago) |
|
Is mod_access installed on your server? |
________________________________
|
|
|
|
Justin
4WebHelp Addict
Joined: 07 Jan 2002
Posts: 1060
|
Posted:
Sun Feb 10, 2002 3:15 pm (22 years, 2 months ago) |
|
whats the difference between your bog standard apache server (1.3.20) like I have and an Apache-AdvancedExtranetServer/1.3.20? |
|
|
|
|
FS
Junior WebHelper
Joined: 10 Feb 2002
Posts: 2
|
Posted:
Sun Feb 10, 2002 8:48 pm (22 years, 2 months ago) |
|
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...
Seems I have to solve the problem with PHP... *sigh* |
|
|
|
|
Ben
Senior WebHelper
Joined: 08 Jan 2002
Posts: 431
Location: Liverpool - UK
|
Posted:
Sun Feb 10, 2002 9:42 pm (22 years, 2 months ago) |
|
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 |
|
|
|
roly
Senior WebHelper
Joined: 08 Jan 2002
Posts: 150
|
Posted:
Mon Feb 11, 2002 5:17 am (22 years, 2 months ago) |
|
Apache-AdvancedExtranetServer/1.3.20 is just a souped up verion of Apache. NVPHost also use it. |
|
|
|
|
renegade
Junior WebHelper
Joined: 16 Mar 2002
Posts: 2
|
Posted:
Wed Mar 20, 2002 8:38 pm (22 years, 1 month ago) |
|
I'm sure you've already for the answer, but I'm replying for the benifit of others who might have the same problem
--------------------------------
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 |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Mar 20, 2002 8:39 pm (22 years, 1 month ago) |
|
Yeah, but that doesn't help if you don't have mod_access installed... |
________________________________
|
|
|
|
roly
Senior WebHelper
Joined: 08 Jan 2002
Posts: 150
|
Posted:
Sat Apr 13, 2002 3:38 am (22 years ago) |
|
|
|
|
|
Page generation time: 0.126783 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme