Skip to content

Restricting access to password creation page #2018

Answered by pglombardo
aobxc asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @aobxcc the only way currently would be via nginx location deny/allow blocks:

server {
    listen 80;
    server_name example.com;

    location / {
        # Allow access for localhost
        allow 127.0.0.1;
        deny all;
        # Additional configuration for your website
        # ...
    }

    location ~* ^/(.*)/p/new {
        # Allow access for localhost
        allow 127.0.0.1;
        # Deny access for all other IPs
        deny all;
        # Additional configuration for the specific URL pattern
        # ...
    }

    location = /p/new {
        # Allow access for localhost
        allow 127.0.0.1;
        # Deny access for all other IPs
        deny all;
        # Ad…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aobxc
Comment options

Answer selected by aobxc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Resolved The issue, question or bug has been resolved.
2 participants