[v2] how to do the v1 internal directive?

In version 1 one can do

internal /media/abc/
internal /media/xyz/

to hide these two directories.

I may have poor search skills but I haven’t found a simple solution. What’s the most efficient way to do it in version 2?

In v2 the typical approach is to use the respond directive.

@blocked {
	path /media/abc/* /media/xyz/*
}
respond @blocked 403

Ah, so simple when you see it! Thanks.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.