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 9 of 9
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts

    SWF file not able to access images on the same domain.

    I have activate the 'hotlink' feature to prevent BW stealers

    but doing so has prevented my own SWF file from accessing images also on the same domain.

    i have used both the full url and the './../images/img.jpg'
    but both do not allow the SWf from accessing the images.

    if i turn off the 'hotlink' feature the SWF works ok, but i need this feature on.

    how do i get aound this?

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Maybe try using this method of hotlinking prevention will not cause this issue

    http://www.hongkiat.com/blog/smarter...with-htaccess/
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by jeremywilken View Post
    Maybe try using this method of hotlinking prevention will not cause this issue

    http://www.hongkiat.com/blog/smarter...with-htaccess/
    ok tried that, and tested it out but does not work

    i have two different servers and tried to add an image site1.com in site2.com by creating a new page with this image in it and the image shows.
    when it should not using this method.

    i copied the code provided in the link you gave and changed the words 'yourdomain' and 'yourdomain2' to my own domain name that has the images on.

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Hmm, strange. And you turned off hotlinking before trying this?
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #5
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts
    yep turned off and restarted browser just in case
    but was able to have the image placed in a different domains page where it should have not been allowed.

  • #6
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    Was this htaccess file at the root of your site? This sounds like a server issue or something with your host, which is why this is hard for me to troubleshoot.

    Is hotlinking a big issue for you, if not then I would just turn it off unless it becomes an issue.

    Perhaps you can contact your host support, maybe they know something secret about their services?
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #7
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts
    no issue with host and already spoken to them and they are looking in to it just in case.

    hotlink prevention works and is required as i have videos that are constantly being hotlinked, and go throught something like 400gig a month! if hotlink is off !!

    hot link works in general and always has done, but when i started using the flash slideshow SWF file it caused problems

    the SWF file can not access the images even when the SWF and the images are on the same site.

    the error log show that the image is not found, or otherwise hotlinked.

  • #8
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    This is a shot in the dark, because I don't know why it would be needed on the same server as the images, but a crossdomain.xml policy file? Do you have one, or perhaps it could be of use here? If you aren't sure what it is there is info by Adobe.
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #9
    Regular Coder
    Join Date
    Mar 2006
    Posts
    478
    Thanks
    3
    Thanked 0 Times in 0 Posts
    thats sort of gone over my head.

    but crossdomain make me think it is something to do with allowing a SWF file to access data from a domain other than that it is hosted on.

    i do not want to allow this, i only want to have the SWF file work 'local'

    i do not use the full url's now and have used the './../images/img.jpg' method which works when the hotlink is off. which stops the swf file being taken and placed on another site.


  •  

    Posting Permissions

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