Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

248
Views
How to deny all the URIs except one in Nginx?

I've a domain where I need to accept only one url and all the other URLs should be blocked. I need to accept only /page?param=something. I'm using Nginx. Any help would be appreciated.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

map $query_string $is_param {
    ~ param=.+ 1;
}

location ~* /page {
    if ($is_param) {
      allow all;
    }
    return 403;
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!