Forum Moderators: open
Thanks. RonMo
here is the HTML of the framed page (name = example.html) :
<html>
<head>
<title>
Gas Prices -
Improve MPG</title>
<meta name="Description" content="Want better Gas Prices?. MPG caps work on gas and diesel engines. ">
<meta name="Keywords" content="gas prices, improve mpg">
<link rel="stylesheet" type="text/css" href="../css/text.css">
</head>
<frameset cols="20%" border="10">
<frame src="http://example.biz" name="body">
<script type="text/javascript" language="JavaScript" src="file.js"></script>
</frameset>
</html>
Here is the external .js file : (name = file.js)
<html>
<head>
<!--Place This Javascript in an external file-->
document.writeln('<frameset rows="100%,*" frameborder="no" framespacing="0" border="0">')
document.writeln('<frame src="file.js" scrolling="auto" name="main">')
document.writeln('<frame src="blank.html" scrolling="no" name="blank">')
document.writeln('</frameset>')
</head>
<body>
gas prices are too high, so find cheap gas for gas engines, diesel engines, and marine diesel engines.
<b>diesel fuel injection system</b>, diesel nozzle assy, diesel servicer, to improve gas mileage. Reduce engine wear and tear.
<b>Diesel nozzle assy</b>, marine diesel engines, diesel servicer, engines, fuel injection system,
<b>find cheap gas</b>, <b>gas prices</b>,
mpg-cap
</body>
</html>
Thanks in advance for the help.
-RonMo
__________________
[edited by: volatilegx at 2:06 pm (utc) on Mar. 7, 2006]
[edit reason] examplified URLs [/edit]
RewriteEngine on
RewriteCond %{HTTP_REFERER}!^$
RewriteCond %{HTTP_REFERER}!^http://([-a-z0-9]+\.)?my-domain\.com [NC]
RewriteRule \.(js¦vbs)$ - [F,NC,L]
It is supposed to allow access to the .js file only if requested by the calling page, not directly from external requests. It doesn't seem to work though; I know 0 about .js and I was just trying a file someone else had written. Any thoughts on the subject?
Thanks, RonMo