SA-MP Forums Archive
.htaccess/blocking on ServerFFS webhost - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: .htaccess/blocking on ServerFFS webhost (/showthread.php?tid=315134)



.htaccess/blocking on ServerFFS webhost - DiDok - 01.02.2012

Since serverFFS has no support, I have to ask here

I'm sick and tired of multiple (8-14) Baidu bots eating bandwidth and contents of my forum, so I decided to block them with .htaccess (since they don't care about robots.txt):
Код:
order allow,deny
deny from 180.76.5.0-180.76.5.255
deny drom 180.76.6.0-180.76.6.255
allow from all
and all I got was error 500 Internal Server Error, so tried this:
Код:
deny from 180.76.5.0-180.76.5.255
deny drom 180.76.6.0-180.76.6.255
with same result

Am I doing something wrong or it's just ServerFFS being ServerFFS, not allowing .htaccess?
Also, their DirectAdmin IPBlocker doesn't do its job, and the internal firewall is not available for me because of no gameserver bought.


Re: .htaccess/blocking on ServerFFS webhost - DRIFT_HUNTER - 01.02.2012

Order Deny,Allow
Allow from all
Deny from XXX.XXX.XXX.XXX


Re: .htaccess/blocking on ServerFFS webhost - Guest9328472398472 - 01.02.2012

I'm just saying my view that you need to choose a reliable host that can assist you fix this problem as at ServerFFS you have to fix what you broke on your own..because they have no support.

OnTopic : Doesn't the CP provide you with a option to "FireWall" or "IP.Deny"?


Re: .htaccess/blocking on ServerFFS webhost - Abreezy - 01.02.2012

Quote:
Originally Posted by Brandon Javorsky
Посмотреть сообщение
I'm just saying my view that you need to choose a reliable host that can assist you fix this problem as at ServerFFS you have to fix what you broke on your own..because they have no support.

OnTopic : Doesn't the CP provide you with a option to "FireWall" or "IP.Deny"?
He answered that already on his OP.

Quote:

Also, their DirectAdmin IPBlocker doesn't do its job, and the internal firewall is not available for me because of no gameserver bought.




Re: .htaccess/blocking on ServerFFS webhost - Guest9328472398472 - 01.02.2012

Then idk I've never encountered a problem like this.


Re: .htaccess/blocking on ServerFFS webhost - DiDok - 01.02.2012

Quote:
Originally Posted by DRIFT_HUNTER
Посмотреть сообщение
Order Deny,Allow
Allow from all
Deny from XXX.XXX.XXX.XXX
Well, that actually stopped the error, hope it'll block the crawlers too, thanks, rep added


Re: .htaccess/blocking on ServerFFS webhost - Saurik - 01.02.2012

Quote:
Originally Posted by DiDok
Посмотреть сообщение
Well, that actually stopped the error, hope it'll block the crawlers too, thanks, rep added
It should block the bots because I used htaccess to block some bots and idiots who attacked me.
The error is gone because it now allows access to everyone except the ips added.


Allowing everyone #1
Blocking the ips #2


Quote:
Originally Posted by Brandon Javorsky
Посмотреть сообщение
Then idk I've never encountered a problem like this.
So stop posting if you have no idea or can't read the first post.


Re: .htaccess/blocking on ServerFFS webhost - DiDok - 01.02.2012

Well, after I denied my IP I can still join and crawlers are still coming (10 now =F) so something is screwed, I did all I think I needed - making new .htaccess in NPP, uploading it in ASCII mode, even tried putting it in different directories


Re: .htaccess/blocking on ServerFFS webhost - Saurik - 01.02.2012

I never had to deal with ip ranges but this is how i did it and it blocked me.


order allow,deny
deny from xxxxxxxx
deny from xxxxxxx
allow from all


So, originally, the thing you posted in the first post is supposed to work. Try deleting the htacess file and making a new one with new rules.


If it's a forum then just block it through ACP.


Re: .htaccess/blocking on ServerFFS webhost - Guest9328472398472 - 01.02.2012

Quote:
Originally Posted by DiDok
Посмотреть сообщение
Well, after I denied my IP I can still join and crawlers are still coming (10 now =F) so something is screwed, I did all I think I needed - making new .htaccess in NPP, uploading it in ASCII mode, even tried putting it in different directories
Do you use a forums? I know you can block ip's with that.