Is there any way of banning users from Gallery2 by IP address? I would rather do this rather than having to drop all connections using iptables.
Gallery version = 2.2-rc-2 core 1.1.30
PHP version = 4.3.10-18 apache2handler
Webserver = Apache/2.0.54 (Debian GNU/Linux) PHP/4.3.10-18
Database = mysql 4.0.24_Debian-10sarge2-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, Thumbnail, Gd, LinkItemToolkit
Acceleration = none, none
Operating system = Linux server1.teamhost.co.uk 2.6.8-3-686-smp #1 SMP Thu Sep 7 04:39:15 UTC 2006 i686
Default theme = classic
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Rows in GalleryAccessMap table = 28
Rows in GalleryAccessSubscriberMap table = 583
Rows in GalleryUser table = 5
Rows in GalleryItem table = 579
Rows in GalleryAlbumItem table = 67
Rows in GalleryCacheMap table = 0
Posts: 32509
Nope.
Would you want to block them from registering / logging in, from anything or what specifically?
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 18
Blocking them from viewing the gallery completely.
Posts: 19
Since your server is running on Linux, you can block specific users/IP addresses/domains with an .htaccess file
If you google for "ban users with .htaccess" you will find what you need, but here is a 10-second summary:
In your Gallery installation directory, create/edit a file called .htaccess and add something similar to the following:
order allow,deny
deny from 123.456.78.90
deny from 123.456.78
deny from .aol.com
allow from all
This will block users for that particular directory.
If you have URL Rewrite Module, be sure to put these new lines above where it says
# BEGIN Url Rewrite section
# (Automatically generated. Do not edit this section)
Hope this helps.
Posts: 18
Thanks for the reply philjung, it works a treat.
Posts: 6
How do you ban an ip addy if you don't use .htaccess? I need to ban one specific person from the entire gallery.
Also where can I locate the installation file? My gallery has been up for 2 yrs. now and this person gives me problems all the dang time.
Posts: 22892
move to a host that supports this most common feature.
start a new thread, that is not related to this topic.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 6
Hmmm not moving hosts as I like my current server and have been w/them for years.
I may use another gallery format other then G2.
Sorry I thought it was topic related as response from a mod was to go to this section of G2 to ban. Not that important I find a gallery host that makes it much simpler to ban ip's and easier to get assistance.
Thank you for your time.
Posts: 4338
According to my interpretation the response was to do it with an .htaccess file, I find no reference to "installation file" anywhere.
Posts: 6
One of the responses in minimizing the response from google said to access that file...but again no matter I will find another host for my gallery.
I thank you for your time.
Posts: 4338
Now you've lost me completely ... sorry!
Posts: 6
I placed in bold what I was referring to based off another person's instructions. They brought up the fact to go thru install that is why I posted the ? I did when I was told to start another thread, to me it looks like this is the appropriate thread.
But again never mind, I will find a place that is tons more helpful and much more customer service oriented. Will also advise other website owner friends to not go w/G2 because of the lack of features and assistance.
Hope everyone has a nice weekend.
Posts: 4338
Ah... the installation directory is the directory on your webserver you installed Gallery in - the one with the main.php file in it. Previously you were asking "where can I locate the installation file?" - hence the confusion.
You've left no one in any doubt about your opinion about the level of assistance you've had here, but reading the thread back I think it's been quite on-the-ball. Anyway it's useful to complete queries even if it's not any use to you, because this thread may crop up in someone's search for their problems in the future.