<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>网页标题</title>
    <script>
        window.addEventListener('DOMContentLoaded', function() {
            var links = document.querySelectorAll('a');
            links.forEach(function(link) {
                link.setAttribute('rel', 'nofollow noopener noreferrer');
            });
        });
    </script>
</head>
<body>
    <!-- 页面内容 -->
</body>
</html>