Skip to main content
Share Your Experience: Take the 2024 Developer Survey

New answers tagged

4 votes

Prevent download of static files referenced only from pages a user is not authorized to access

I handle all requests to static files using the same method and evaluating the same authorizations I use for pages: would that work? Would that make sense? I'm going to disagree with @freakish's ...
pjc50's user avatar
  • 13.6k
4 votes
Accepted

Prevent download of static files referenced only from pages a user is not authorized to access

You need authorization, of course. Now, you may simply run this through your web server, and check database. While not ideal from performance perspective, it is simple, and often will be good enough. ...
freakish's user avatar
  • 1,271

Top 50 recent answers are included