We can customize the toolbar so that we can hide the tools that we do not want to show in a GeoGebra applet.
The following is an example about constructing a midpoint between two points using straightedge and compass only i.e. students can only use the line tool

and circle tool

in the construction.
Classwork: Take away the line tool

from the toolbar.