Originally posted by meow
Eh...what smart code should I have posted?
Originally posted by meow
I tried this on f2s:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !>http://www.blah.f2s.com [NC]
RewriteRule /* http://www.blah.f2s.com/bad.html [R,L]
Boy, are you good or what?!?
Originally posted by meow
So theoretically it could be .html?
Originally posted by lucifer
the extension is just what your server wants to use you can set *.meow files to be run as php
# PHP
ScriptAlias /php/ "c:/usr/php/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .meow
What a perfectly lovely idea!Originally posted by lucifer
then it runs .meow files as php
<?
# ERROR CHECK AND INCLUDE CSS
if ($col=="red" || $col=="green" || $col=="blue"){
echo "<link rel='stylesheet' href='$col.css' type='text/css'>";
}
# GET CURRENT PAGE INFO FOR CHANGER
$pageinf=parse_url($REQUEST_URI);
$pageurl=$pageinf['path'] . "?col";
# SET UP VARS TO INCLUDE ON PAGES
$changelink="<a href='$pageurl=red'>red</a> | <a href='$pageurl=green'>green</a> | <a href='$pageurl=blue'>blue</a>";
$link="?col=$col";
?>