Deny URL access if link contains word "/cats" on IIS 10 for Report Server

Sergey Knyazev 40 Reputation points
2025-02-18T19:24:05.1733333+00:00

Good day!
I am writing with one question that has been bothering me for several months. IIS 10 and PowerBI Report Server are installed on our Windows Server 2019 server. Access to services is implemented via the URL: https://test.company.eu/reports/browse. Everything is great and works. But there is a task to deny access if the link contains the word "/cats". For example, clicking on such a link https://test.company.eu/reports/browse/animals/cats/black/15684 should end with the display of the page Access denied. I am trying to implement it via IIS 10 and the Rewrite URL module, but the pattern "/cats" does not work, I understand that something is wrong with ReportServer. Please help with this task.

Internet Information Services
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,998 questions
0 comments No comments
{count} votes

Accepted answer
  1. Lex Li (Microsoft) 5,932 Reputation points Microsoft Employee
    2025-02-18T23:50:30.2133333+00:00

    Starting with Windows Vista, such web apps are more likely to be hosted by console/Windows service apps directly with Windows HTTP API, via reserved URLs, https://docs.lextudio.com/jexusmanager/tutorials/https-binding#reserved-urls

    Then, the requests do not go through IIS and none of your rewrite rules will work for them. You would need a reverse proxy/gateway configured for your users if you want to filter by URLs.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.