News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

IP Blocking Question

Started by 20abc22, March 21, 2023, 09:21:52 AM

Previous topic - Next topic

20abc22

Quote from: Steve on March 22, 2023, 08:16:10 AM@20abc22 - This has been recommended 4 times now in this topic:

Quote from: Arantor on March 22, 2023, 04:27:30 AMOr you can use htaccess

Is there a specific reason you're against using .htaccess?

I am not that savvy :) afraid to mess things up.

a10

https://www.google.com/search?q=ip+ban+htaccess
Works great. & no danger, simply edit (or delete) it if something goes overboard :O)
htaccess saves resources, as explained.
 
SMF: Ban List > tick Ban on IP > enter an IP > enter a Ban name > save (add).
Expiration 'never' & 'full ban'. Check the ban log periodically, with no hits after a period > 'Expired / disabled' or delete the ban.
Banning in smf has one small advantage, one can monitor (hits, ban log) connection attempts.

But... anyone can easily use a new ip and be back 1 minute after seeing some ban or a 403 forbidden (htaccess).
The effective way to stop anyone form copying content is to delete the whole website\forum, or put a "deny from all" in htaccess :O)
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

20abc22

Quote from: a10 on March 22, 2023, 08:27:46 PMhttps://www.google.com/search?q=ip+ban+htaccess
Works great. & no danger, simply edit (or delete) it if something goes overboard :O)
htaccess saves resources, as explained.
 
SMF: Ban List > tick Ban on IP > enter an IP > enter a Ban name > save (add).
Expiration 'never' & 'full ban'. Check the ban log periodically, with no hits after a period > 'Expired / disabled' or delete the ban.
Banning in smf has one small advantage, one can monitor (hits, ban log) connection attempts.

But... anyone can easily use a new ip and be back 1 minute after seeing some ban or a 403 forbidden (htaccess).
The effective way to stop anyone form copying content is to delete the whole website\forum, or put a "deny from all" in htaccess :O)

Perfect! I will look into it.

Thanks for your help, everyone!

20abc22

I am sorry - where are 'Bans' or 'Ban list' in SMF 2.1.3? I only can see the 'Moderation Journal" or whatever it is called.

Thanks!

Shades.

Quote from: 20abc22 on March 23, 2023, 08:32:58 PMI am sorry - where are 'Bans' or 'Ban list' in SMF 2.1.3? I only can see the 'Moderation Journal" or whatever it is called.

Thanks!
Administration Center>Members>Ban List
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

20abc22

Quote from: Shades. on March 23, 2023, 08:55:26 PM
Quote from: 20abc22 on March 23, 2023, 08:32:58 PMI am sorry - where are 'Bans' or 'Ban list' in SMF 2.1.3? I only can see the 'Moderation Journal" or whatever it is called.

Thanks!
Administration Center>Members>Ban List

Thank you so much! For the life of me, I could not find it (perhaps because my SMF version is in another language :)).

20abc22

I've just added a ban, but it does not seem to have worked, as I am seeing same IPs accessing the site right now.

This is not related to my original issue, but I still want to ban the subnet 51.222.253., as this is some Canadian bot and I don't want it. Here are the IPs currently on my site:

(51.222.253.3)   
(51.222.253.2)   
(51.222.253.19)   
(51.222.253.18)   
(51.222.253.15)   
(51.222.253.13)   
(51.222.253.12)   

If I choose 'block by IP", what would be the correct syntax for this subnet - 51.222.253.* ?

Thank you.


Kindred

Putting a bunch in smf does not prevent the target from hitting the site.  It does, however,  prevent the site from displaying content.

Seriously,  we told you to use htaccess
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

20abc22

Quote from: Kindred on March 23, 2023, 11:17:14 PMPutting a bunch in smf does not prevent the target from hitting the site.  It does, however,  prevent the site from displaying content.

Seriously,  we told you to use htaccess

ОК, I will give it a shot during the weekend :)

Advertisement: