Score:0

IP Restriction on a admin pages

gb flag

Currently I'm working on how to restrict the admin pages on a certain IP. I'm using Drupal 9 version This is what I put on the htaccess

<Location "/admin/dashboard">
  Order deny,allow
  deny from all
  allow from 123.12.12.12
  allow from 123.123.43.43
</Location>

but it is still not working. Is there any suggestion on how to fix this one. Thanks in advance.

in flag
We'll probably need to know why you're using IP addresses to keep out users and not a combination of roles and permissions, and registration restrictions.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.