• Resolved jcmb

    (@jcmb)


    Hi,

    is it possible to restrict the redirections’ scope to preselected domains or relative paths only? I’d like to prevent (accidental) misuse by overzealous users. 🙂

    Thanks

    • This topic was modified 3 years, 5 months ago by jcmb.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    I’m not sure what you mean? Can you give an example of something you are worried might occur?

    Thread Starter jcmb

    (@jcmb)

    Hi John,

    thanks for getting back to me!

    I’m just worried about users breaking the website or hacked accounts.

    I’d like to enable an editor to create redirections. The role shouldn’t be capable of freely entering any domain into the form fields but instead sticking to the root domain/subsite only (or a predefined set of domains).

    e.g. https://example.com/my-old-slug pointing to https://example.com/my-brandnew-slug (and NOT “some-shady-domain.com” or http:/exmaple.com/my-brandnew-typo 😉 )

    Thanks

    Plugin Author John Godley

    (@johnny5)

    That’s something you would need to customise with code:

    https://redirection.me/developer/wordpress-hooks/

    Personally, if you don’t trust your editors then I’d probably not give them access anyway. There are many things they could do even if you do restrict them to a single domain and this seems like it might create a false sense of security.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘restricting target URL scope’ is closed to new replies.