Francis Daly Wrote: ------------------------------------------------------- > On Thu, Feb 06, 2020 at 06:02:50PM -0500, AshleyinSpain wrote: > > Hi there, > > > > > server { > > > > location /radio/ { > > > > valid_referers none blocked server_names ~\.mysite\.; > > > > if ($invalid_referer) { return 403; } &gby AshleyinSpain - Nginx Mailing List - English
J.R. Wrote: ------------------------------------------------------- > > I found various code examples to add to the conf file and coupled > this > > together and added it to the end of the conf file, but it doesn't > work, > > entering a URL directly into the browser serves it > > > server { > > location /radio/ { > > valid_referersby AshleyinSpain - Nginx Mailing List - English
I want to use nginx referer module to restrict access to a URL containing a directory /radio/ Only allowing access to it from a link with http referer *.mysite.* (anysubdomain.mysite.anytld) otherwise redirect to 403 Is the referer module already loaded in nginx if not how do I load it I found various code examples to add to the conf file and coupled this together and added it to the end oby AshleyinSpain - Nginx Mailing List - English