Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2009
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts

    .htaccess and Iframe help

    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?

  • #2
    120
    120 is offline
    Regular Coder
    Join Date
    Nov 2009
    Location
    UK
    Posts
    105
    Thanks
    6
    Thanked 15 Times in 15 Posts
    create a page with the iframe in it, redirect to that.
    There is always plenty of idol work for the devils hands to do
    Registered Linux User 475075 : Project Honeypot


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •