If you want it to be members-only because it shows some information, use Perl. But if you want it to be members-only because you want to link to 'my profile', 'new topic'/etc, you can use JavaScript.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.