This is quite a common question and would be cool to have some way to protect css.
Let me maybe write the code from link:
in pligg.tpl
first line:
Code:
<?php session_start(); $_SESSION['csskey'] = "hello"; ?>
in style.php
Code:
<?php session_start(); header("Content-type: text/css");
if ($_SESSION["csskey"] != "hello") { die("Protected"); } $_SESSION["csskey"] = "somethingelse"; ?>
body { background-color: #000; color: #fff; } ......
in .htaccess:
Code:
RewriteEngine on
RewriteRule style.css style.php
But this dont work in pligg. Why?. maybe path to style.css and style.php is wrong????