Allow access to galleries based on ip address

Elax

Joined: 2005-10-10
Posts: 3
Posted: Mon, 2006-01-16 13:40

Hi,

Is there a way to restrict access depending on ip address? What I'm trying to achieve is to give the LAN or specific ip's access to all albums, but people from the general internet only to a couple


Gallery version = 2.0.2 core 1.0.0.2
PHP version = 4.3.2 apache
Webserver = Apache
Database = mysql 3.23.58
Toolkits = ArchiveUpload, Exif, NetPBM, Gd
Operating system = Linux mail 2.4.20-18.7 #1 Thu May 29 08:32:50 EDT 2003 i686
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Fri, 2006-02-03 13:04

Not built in, but I imagine you could write up some quick code to automatically log in a user as some specific user (maybe "RFCUser") when they are not logged in and coming from an RFC reserved address. Then you'd just need to configure user/group permissions properly.
_________________________________
Support & Documentation || Donate to Gallery || My Website