Author Topic: Hotlink Protection  (Read 4900 times)

0 Members and 1 Guest are viewing this topic.

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
Hotlink Protection
« on: May 27, 2003, 04:21:50 AM »
Hello All,
Does this image gallery script have any sort of inherent hotlink protection?
Thanks,

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Hotlink Protection
« Reply #1 on: May 27, 2003, 05:21:12 AM »
No because that's really a function of your web server.

Try this link:
http://www.4homepages.de/forum/viewtopic.php?t=4642

Offline www.girls-on-bikes.com

  • Full Member
  • ***
  • Posts: 145
    • View Profile
    • http://www.girls-on-bikes.com/
Hotlink Protection
« Reply #2 on: May 27, 2003, 06:02:58 AM »
Thanks for the link.
I went with the .htaccess in my /data directory to prevent hotlinking.

(BTW: To create inherent hotlink prevention, the script would only need to add the ability to choose where you want to have the data directory.  Then you simply put it "above" /public_html and it is not accessable from the web.)

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Hotlink Protection
« Reply #3 on: May 27, 2003, 04:03:08 PM »
That wouldn't work.  The script does not read the files and output them directly to the browser.  It uses the efficiency of the web server to deliver the media files.  You can search the forums for this topic as it has been discussed recently and debated many times.

Cheers.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Hotlink Protection
« Reply #4 on: May 27, 2003, 06:07:48 PM »
maybe u might want check this recent thread:
http://www.4homepages.de/forum/viewtopic.php?t=5763
I posted an example how to make the script read file and send back to the browser.
this way works just fine for me, but only when file less then 700kb...not sure why I have so low limit, even though all php settings set to 512mb...
hope someone can give me a hint what could be wrong.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)