User login filter from IPs

Which features are you missing? Tell us about it.
Post Reply
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

User login filter from IPs

Post by Tony20 »

About adding the same feature like in Admin, where admin can filter login from IPs.


The user does not have that choice, I think it make KeyHelp more secure.





Tony.
User avatar
george
Posts: 87
Joined: Fri 3. Jan 2020, 05:53
Location: AUSTRALIA

Re: User login filter from IPs

Post by george »

Hi Tony, thats a good idea.

For now, you could add the following, to a .htaccess file in the KeyHelp web directory:

/home/keyhelp/www/.htaccess

Code: Select all

# RESTRICT ACCESS TO DIRECTORY BY IP ADDRESS
# Include in .htaccess of any directory
<RequireAny>
Require all denied
Require ip 1.2.3.4
Require ip 5.6.7.8/12
# If local server access to the directory is required
# add the following; include the server ip addresses (ipv4 & ipv6)
Require local
Require ip 9.10.11.12
Require ip 2001:0db8:85a3:0000:0000:8a2e:0370:7334
</RequireAny>
source: viewtopic.php?f=11&t=9261
Tony20
Posts: 45
Joined: Tue 7. Apr 2020, 19:21

Re: User login filter from IPs

Post by Tony20 »

Hello George!


When i look in /home/keyhelp/www/ there is no ".htaccess" file, so I will have to create one?
User avatar
Jolinar
Community Moderator
Posts: 3560
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: User login filter from IPs

Post by Jolinar »

Tony20 wrote: Sun 14. Jun 2020, 17:59 When i look in /home/keyhelp/www/ there is no ".htaccess" file, so I will have to create one?
Yes.
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
Post Reply