Form to block page view

Need to force website visitors to enter email address in form before they can view the whole page. This is to collect contacts data from visitors.

I have form created to pop when visitor tries to leave the website, is there a way to do the same when visitor tries to view a specific pages?