Advertisement:

Author Topic: How can I ban a range of ip addresses?  (Read 2493 times)

Offline SkellyCA

  • Semi-Newbie
  • *
  • Posts: 15
How can I ban a range of ip addresses?
« on: October 11, 2017, 09:28:09 AM »
I thought I banned a whole range last night but then woke up to a whole new group of fake users trying to get in.

I want to ban everything that starts with 91.200

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,079
Re: How can I ban a range of ip addresses?
« Reply #1 on: October 11, 2017, 09:29:19 AM »
are they causing you to get spammed or what? you are really better to improve your defenses to stop the spam rather then ban by ip address like that.

Offline SkellyCA

  • Semi-Newbie
  • *
  • Posts: 15
Re: How can I ban a range of ip addresses?
« Reply #2 on: October 11, 2017, 09:45:07 AM »
I have anti virus and fire wall + malware bytes. I'm getting a bunch of fake users trying to get in to the forum. I have it set so that new members need to be approved but they still show up there as needing to be approved, almost 300 of them over night. They are all coming from 91.200

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,079
Re: How can I ban a range of ip addresses?
« Reply #3 on: October 11, 2017, 09:49:40 AM »
are you running the forum on your own computer? antivirus, and malwarebytes will not keep this from happening.

Offline YogiBear

  • SMF Hero
  • ******
  • Posts: 1,924
Re: How can I ban a range of ip addresses?
« Reply #4 on: October 11, 2017, 09:59:26 AM »
91.200.12.91 is a pain in the neck from the Ukraine.

Suggest ban it either via your forum or even cpanel under IP Deny (or similar term).


Edit : come to think of it the whole range can pose probs.. Suggest ban 91.200.12.* or 91.200.12.0-255
SMF v2.0.15  Mods : Ohara YouTube Embed v1.2.9,  Custom Tab v1.2 , Bakers' Dozen Pages v1.2 , SMFPacks Shoutbox v1.1,  Board Color & Icons v1.1

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,107
  • 'Tis the gift to be simple
Re: How can I ban a range of ip addresses?
« Reply #5 on: October 11, 2017, 12:26:08 PM »
You can ban a range with .htaccess, it will prevent them from reaching the forum.

Offline Oldcrow

  • Jr. Member
  • **
  • Posts: 268
  • Gender: Male
  • "One foot in the grave!"
    • Seniors Worldwide
Re: How can I ban a range of ip addresses?
« Reply #6 on: October 11, 2017, 12:59:27 PM »
I thought I banned a whole range last night but then woke up to a whole new group of fake users trying to get in.

I want to ban everything that starts with 91.200

Wasting your time, and probably also blocking prospective new members that are within the IP's areas..

There are a couple of programs to stop the spammers in there tracks..

This one here is what I have used for years:  https://custom.simplemachines.org/mods/index.php?mod=1547  Install this program and Register at Stop Spam Forum  http://www.stopforumspam.com/  after you have registered, get an API number to install in the program, this will activate the program. Now let the program do it's job..

I have stopped thousands of spammers over the last few years..

Offline SkellyCA

  • Semi-Newbie
  • *
  • Posts: 15
Re: How can I ban a range of ip addresses?
« Reply #7 on: October 11, 2017, 05:13:02 PM »
It's hosted at godaddy, not my computer. I've been getting a lot of fake user requests now that I set membership to be approved first but even that's annoying. I was getting spam.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,119
  • Gender: Male
    • Kindred-999 on GitHub
Re: How can I ban a range of ip addresses?
« Reply #8 on: October 11, 2017, 10:26:21 PM »
Read the FAQ on how to avoid spammers
You've ben going about it wrong.

Don't ban... don't bother with approval

Write 10-20 good questions for registration and ask 2-3 of them with each registration
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,107
  • 'Tis the gift to be simple
Re: How can I ban a range of ip addresses?
« Reply #9 on: October 11, 2017, 10:30:08 PM »
91.200 is a well known spammer ip from Ukraine.  You can block it by creating .htaccess file with this -

Code: [Select]

Order Deny,Allow
Deny from 91.200


 and placing it in your forum root.  It's better than a mod because it prevents them from touching your forum, they're blocked before they get there.  And try using verification questions for registration as Kindred suggests.



Offline Steve

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 3,938
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: How can I ban a range of ip addresses?
« Reply #10 on: October 12, 2017, 09:41:01 AM »
After you've done what Sir Osis said, to prevent others do as Kindred said:

Write 10-20 good questions for registration and ask 2-3 of them with each registration

To give you an example, look here: http://www.simplemachines.org/community/index.php?topic=531660.msg3776163#msg3776163
Please do not PM me for support.

Offline SkellyCA

  • Semi-Newbie
  • *
  • Posts: 15
Re: How can I ban a range of ip addresses?
« Reply #11 on: October 13, 2017, 07:46:00 PM »
Thank you all. All better now.  ;D