Hello!
Recently my forum is being visited by this ip48.ip-54-36-149.eu ip address.
I checked it on WHOIS and it is somewhere situated in France but i don't find any negative informations on it.
What do you think about it?Is it an automated bot and should be blocked via .htaccess?
Thanks a lot
Hello and thanks for replying!
I have added :
SetEnvIfNoCase User-Agent "AhrefsBot" bad_bot
RewriteCond %{ENV:bad_bot} !=""
RewriteRule .* - [L,R=204]
To my .htaccess file. I think it would do the job,right?
I will bump this thread instead of making another one.
I would like to block all the users from the following:
host-156.197.93.165-static.tedata.net
How can i add it to .htaccess file?
Thankyou.
Adding block rules to your htaccess file will slow down the site as it puts the load onto the Apache server.
"If you are administrator of your server, I would use none of those, and would ban the IPs at the firewall level -- this way, nor Apache nor Apache+PHP will have to work." -
https://stackoverflow.com/questions/2090...ess-or-php
It's better to do this from a firewall level. If you're using cloudflare, you can IP block through their system. If not, and you have cpanel, you can add block rules through your firewall there.
If you absolutely must use PHP (which apache still handles):
$banned = array('129.168.1.1');
if(in_array($_SERVER['REMOTE_ADDR'], $banned))
{
die();
}
(also referenced from that stack exchange)
If you're using cpanel:
https://documentation.cpanel.net/display...IP+Blocker
If you're using cloudflare:
https://serverpilot.io/docs/how-to-block...cloudflare
(2018-08-05, 03:46 PM)kbilly Wrote: [ -> ]I will bump this thread instead of making another one.
I would like to block all the users from the following:
host-156.197.93.165-static.tedata.net
How can i add it to .htaccess file?
Thankyou.
To block a range of IP addresses, you do this...
Example:
deny from 41.57.116.0/254
That will block anyone with that IP address that begins with '0' all the way up to '254'.
However, that IP address: 156.197.93.165 is a static address...
So to deny anyone from that address you do this...
deny from 156.197.93.165
(2018-08-05, 03:58 PM)tamme Wrote: [ -> ]Adding block rules to your htaccess file will slow down the site as it puts the load onto the Apache server.
"If you are administrator of your server, I would use none of those, and would ban the IPs at the firewall level -- this way, nor Apache nor Apache+PHP will have to work." - https://stackoverflow.com/questions/2090...ess-or-php
It's better to do this from a firewall level. If you're using cloudflare, you can IP block through their system. If not, and you have cpanel, you can add block rules through your firewall there.
If you absolutely must use PHP (which apache still handles):
$banned = array('129.168.1.1');
if(in_array($_SERVER['REMOTE_ADDR'], $banned))
{
die();
}
(also referenced from that stack exchange)
If you're using cpanel: https://documentation.cpanel.net/display...IP+Blocker
If you're using cloudflare: https://serverpilot.io/docs/how-to-block...cloudflare
The htaccess file is nothing but a text file, so the load on an Apache server is quite small.
I have a HUGE htaccess file and never had an issue with the Apache server being slow.
Regarding blocking ip address ,i understood.
But i would like to block access from "tedata.net"
Thanks
(2018-08-05, 05:48 PM)kbilly Wrote: [ -> ]Regarding blocking ip address ,i understood.
But i would like to block access from "tedata.net"
Thanks
That IP
156.197.93.165 is tedata.net. That "tedata.net" is just extra information. Disregard it.
Use the IP number, that's all you need.
The problem is that i have an user from that service provider who is registering himself using
host-156.197.93.165-static.tedata.net
host-156.196.158.246-static.tedata.net
host-156.194.71.8-static.tedata.net
and so on..i have banned all those ip addresses but then he will come up with another static one
example host-156.190.71.8-static.tedata.net and so on.
That's why i would like to block all ip addresses from tedata.net as he is a spammer.
If it can't be done with .htaccess then i think i should block them in ACP using the the * function.
Any suggestions?
Thankyou.
(2018-08-06, 08:28 AM)kbilly Wrote: [ -> ]The problem is that i have an user from that service provider who is registering himself using
host-156.197.93.165-static.tedata.net
host-156.196.158.246-static.tedata.net
host-156.194.71.8-static.tedata.net
and so on..i have banned all those ip addresses but then he will come up with another static one
example host-156.190.71.8-static.tedata.net and so on.
That's why i would like to block all ip addresses from tedata.net as he is a spammer.
If it can't be done with .htaccess then i think i should block them in ACP using the the * function.
Any suggestions?
Thankyou.
Clearly, that person from tedata.net is annoying.
Here's what I got... (scroll down to see both screenshots)
If you have Cloudflare, I would use their
Access Rules. (Under Firewall tab) This is a FREE option that Cloudflare offers. Give it a shot.