News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Banning Board's by IP

Started by sicksix, March 12, 2012, 03:50:28 PM

Previous topic - Next topic

sicksix

Is there a way or has someone wrote a module where you can ban certain boards by IP?  So that a user may read only certain sections based on their IP?

Marcus Forsberg

Hey there,

I have never heard of a mod like this. Perhaps this would be better suited in Mod Requests? :)

MrPhil

You could look at setting board permissions to allow a given board to be accessed only by a given group. That might require some SMF code changes, too. You would have to manually create the various board groups, putting members into one or another based on their IP addresses. If this is excessively labor intensive for the existing members, perhaps you could export the members table as a CSV, write a script to look at each member's IP address and determine the group, and either create a CSV update to the groups table or just a list to manually enter.

Advertisement: