View Full Version : .htaccess and Iframe help

12-06-2010, 03:17 AM
Is it possible to server up a iframe for people hotlinking your swfs and images?

Something like this?

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?MyDomain.com/.*$ [NC]
RewriteRule \.(gif|jpg)$ http://www.MyDomain.com/Index.html" frameborder="0" width="300" height="550" scrolling="no" marginheight="0" marginwidth="0"</iframe> [R,L]

This code is not working. Is it possible? How would i write it?

12-11-2010, 08:16 PM
create a page with the iframe in it, redirect to that.