Github-allow access to specific repository

Announcements

Changes to the LIVEcommunity experience are coming soon... Here's what you need to know.

Reply
SThatipelly
L4 Transporter

Github-allow access to specific repository

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?

 

TIA.

kiwi
Community Team Member

Hi @SThatipelly ,

 

I don't see a way to have this automated. 

I can only think about making the changes manually.

 

Cheers,

-Kiwi.

 
NikolayDimitrov
L4 Transporter

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:

 

https://live.paloaltonetworks.com/t5/automation-api-discussions/version-10-no-7-byte-limit-for-sinat...

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!