• Hi,

    In the standard comments.php file for a template there’s a line of code at the beginning just to not let people access the comments form directly (I guess spammers were the reason they put it there):

    if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME'])) die ('Please do not load this page directly. Thanks!');

    I would like to protect a static page from acessing it directly. Is it possible?

    Loauc.

  • The topic ‘Avoiding direct access to a certain page’ is closed to new replies.