How do I block all Github but allow access to a specific repository? For eg. I want to allow https://github.com/cisagov and block all github using a single URL filtering policy. How can I do that?
I added github.com/* to custom URL list and set it to block.Created another security policy with a custom URL list containing the specific github page and set the action to allow. I was able to get to the page but the contents inside the page are incomplete. I am showing github pages render content from different pages like avatars.githubusercontent.com, github.githubassets.com etc.
How can I keep up with the change in future if I allow the extra sites for now?
Is there are any best way I can achieve this?
You may try making custom app-id signature for a REFERER Header. The idea is if the request for example for avatars.githubusercontent.com was made by the main URL https://github.com/cisagov then to allow it. If the user tries to access directly avatars.githubusercontent.com they should be blocked.
I have made post suggesting how this can be done:
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!