Originally posted by djlee
View Post
i'd like to check how good protection that is
<Files *.css>
Order deny,allow
deny from all
Allow from localhost
Allow from Your Domain
</Files>
RewriteEngine on
RewriteRule coreset.css coreset.php
session_start();
$_SESSION['csskey'] = "hello";
<?php
session_start();
header("Content-type: text/css");
if ($_SESSION["csskey"] != "hello") {
die("Protected");
}
$_SESSION["csskey"] = "somethingelse";
?>
<?php
require_once("2pac.css");
?>
body { background-color : #000000; color : #000000; font-family : arial; font-size : medium; margin : 0; padding : 0; margin : 3px auto; max-width : 750px; margin-bottom : 3px; border : 1px solid #000000; } img.logo { margin-top : 1px; } a { color : #ffffff; } a.cat { color : #ffffff; } a.pro { color : #ffffff; } a.nav { color : #ffffff; } a:active, a:hover { color : #0000ff; text-decoration : underline; } .text { color : #ffffff; } .textbox { color : #ffffff; text-align : center; } .text_black { color : #000000; } .text_small { color : #ffffff; font-size : small; } .title { background-color : #8a9296; } .mainteaser { background-color : #000044; border : 2px groove blue; font-family : arial, verdana, ms sans serif; font-weight : bold; font-size : 8pt; margin : 0; border-top : 2px solid #0000aa; border-bottom : 2px solid #0000aa; } .mainteaser_text { background-color : #000044; color : #ecf0f1; text-align : center; padding : 2px; margin : 0; font-size : medium; font-weight : bold; } #inputText { background-color : #ffffff; color : #000000; border : 1px; } .alt2 { color : #ffffff; font-size : small; } p.c4 { text-align : center; } hr.c3 { color : blue; background-color : blue; height : 2px; border : none; } div.c2 { text-align : center; } p.c1 { text-align : right; } p.c3 { text-align : right; } input { background-color : black; border : 2px groove blue; color : green; font-family : arial, verdana, ms sans serif; font-weight : bold; font-size : 8pt; } input:hover { background-color : blue; color : red; border : 2px groove blue; font-family : arial, verdana, ms sans serif; font-weight : bold; font-size : 8pt; } button { border : 1px solid blue; background : #ccf; } button:hover { border : 1px solid blue; background : blue; } label { display : block; width : 150px; float : left; margin : 2px 4px 6px 4px; text-align : right; } br { clear : left; } inputtext { border : 2px groove blue; color : black; font-family : arial, verdana, ms sans serif; font-weight : bold; font-size : 8pt; }
Comment