Advertisement:

Author Topic: Use CIDR ranges in ip ban triggers  (Read 4994 times)

Offline shentino

  • Semi-Newbie
  • *
  • Posts: 75
Use CIDR ranges in ip ban triggers
« on: June 13, 2015, 01:57:51 PM »
You should be able to add CIDR ranges to ip ban triggers.

For example, I would like to add 66.249.64.0/19 to prevent the googlebot from looking at my board.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,615
  • Gender: Male
    • i30 Owners Club
Re: Use CIDR ranges in ip ban triggers
« Reply #1 on: June 13, 2015, 02:32:49 PM »
Then add your CIDR spec to .htaccess server side.

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 60,282
  • Gender: Male
    • Kindred-999 on GitHub
Re: Use CIDR ranges in ip ban triggers
« Reply #2 on: June 13, 2015, 05:59:48 PM »
In short... No, we should not.   Bans should not be used that way in the forum and should be done in htaccess as shambles indicates

Also, ban Google?  Why? That seems stupid....
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."

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,932
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: Use CIDR ranges in ip ban triggers
« Reply #3 on: June 13, 2015, 08:58:47 PM »
For example, I would like to add 66.249.64.0/19 to prevent the googlebot from looking at my board.
Can't you deny Google by robots.txt?