Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Block URL's with yaml file (PHP8)

Hi,

I'd like to block URL's using a yaml file for a specific service. I have specified an URL that should be public as follows.

# Serve php scripts.
- url: /abcdef.php$
  script: abcdef.php
  secure: always

The other php URL's should be available. I can't find info on this in the documentation. Anybody have any idea?

Solved Solved
0 4 372
1 ACCEPTED SOLUTION

You're absolutely right. There's no built-in functionality in PHP itself to automatically block URLs solely based on a YAML file. You'll always need some PHP code to handle the processing and enforcement.

View solution in original post

4 REPLIES 4