Possible to prevent visitors accessing the gallery directly?

[ad_1]

I’ve created a gallery and with the help of a shortcode embedded it on a page.

However, the gallery is also directly accessible for visitors through https://mysite.com/pgc_simply_gallery/gallery-name/.

Is it possible to not have this direct gallery url, so that users can only see it when visiting the page where it is embedded?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer