Jump to content

User roles and IP


asbjorn
 Share

Recommended Posts

(I am unsure of where to put this question, it might be both module and template related.)

I was looking at the module PageRenderIPRestriction and started wondering. Would it be possible to do something similar, but give a guest a user role based on IP (v6 preferrably)? Not for security measures, but for presentation.

I'm working on a mixed webpage with both intranet features and normal web page stuff. There's some parts of my templates I was thinking of restricting to a specific (or multiple) user role(s), namely employees.

Example:

If visitor's IP range is A-B, then he's an employee and should be able to view some extra buttons in a news article.

If visitor's IP range is else, no buttons are visibile.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...