We should really know how the exam is being administered.
If it is a browser-based exam and the PCs should be able to access the resources outside to run it, we cannot simply block HTTP/HTTPS. You should define custom site and permit access to it using URLF/App Control in the rule above that preventing HTTP(S) access to other sites.
Remote administration of PCs could be accomplished by either configuring a mobile access for the teacher, to connect tot the gateway via VPN and running RDP to the PCs, or by deploying a jump host, like Apache Guacamole™ ,configuring it to run on custom port not conflicting with any of Check Point services.
For example:
1. Create custom HTTPS service:
![](/legacyfs/online/checkpoint/70343_pastedImage_3.png)
2. Create these objects:
a dummy object with Gateway's external IP:
![](/legacyfs/online/checkpoint/70344_pastedImage_4.png)
and a real object for the JumpHost:
![](/legacyfs/online/checkpoint/70346_pastedImage_6.png)
students's network:
![](/legacyfs/online/checkpoint/70349_pastedImage_9.png)
custom Site:
![](/legacyfs/online/checkpoint/70350_pastedImage_10.png)
and Test Time(s):
![](/legacyfs/online/checkpoint/70351_pastedImage_11.png)
3. Configure NAT rules:
![](/legacyfs/online/checkpoint/70347_pastedImage_7.png)
4. Enable "Time" column in the Policy view:
![](/legacyfs/online/checkpoint/70352_pastedImage_12.png)
5. And configure the access rules:
![](/legacyfs/online/checkpoint/70353_pastedImage_13.png)
This should do it.