Author Topic: Acsess to folders with images without script.  (Read 22971 times)

0 Members and 1 Guest are viewing this topic.

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Acsess to folders with images without script.
« on: November 28, 2002, 04:09:14 PM »
I have folder with big images for reg. users, can I save images in this folder from direct download via browser without using script?? I head that i must  close acsess to this folder from HTTP protocol, will this help? :?:
My English too bad.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Kind of...
« Reply #1 on: November 28, 2002, 04:28:34 PM »

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Acsess to folders with images without script.
« Reply #2 on: December 02, 2002, 11:27:51 AM »
I try this, but this dont work, or I made a mistake. Explane me please. I create  file .htaccess  (
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.mysite.org [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.org [NC]
RewriteRule [^/]+.(.*)$ http://www.mysite.org/accessdenied.gif [R,L] )

In this file i change www.mysite.org for the real adress of my site and put it into the folder where I have images for download ( this is not "media/photo" folder with prevue that use in the page that script generate, this is filder with full size images that I created ). But then I can't download image. I deleted  thiz file and script begin work fine.  What mistake I made - help me/ :!:  :?:
My English too bad.

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Try this
« Reply #3 on: December 02, 2002, 03:56:05 PM »
Try this instead:
Code: [Select]
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.mysite.org [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mysite.org [NC]
RewriteRule [^/]+.(jpg|png)$ http://www.mysite.org/accessdenied.gif [R,L]

Just put the file name extensions in the (jpg|png) part and separate them with the vertical pipe character "|".  I think the (.*) part of what you tried was also excluding the accessdenied.gif you were trying to deliver.

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Acsess to folders with images without script.
« Reply #4 on: December 06, 2002, 01:43:06 PM »
Thanks, with this file I protected my files from downloading, but I can,t download them with the script too. Hom I can sepsrate this ? or this is not possible ?
My English too bad.

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Acsess to folders with images without script.
« Reply #5 on: December 06, 2002, 05:05:09 PM »
If your PHP runs in safe_mode this will not work.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline fotograf

  • Newbie
  • *
  • Posts: 26
    • View Profile
Acsess to folders with images without script.
« Reply #6 on: December 20, 2002, 08:42:20 PM »
Yes. I install locall Apache server with PHP and MSQL onto my computer and ther this work fine. My hoster is not well :cry:
Thanks you for your advise . I think this is the exelent way to protekt pictures for users off this fine script. Thanks again and again. :wink:  :wink:
My English too bad.

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
Acsess to folders with images without script.
« Reply #7 on: December 22, 2002, 03:29:28 AM »
again found something.... :roll:
with this .htaccess video, mp3, swf and so on files dont play at all....
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)

Offline whatevah

  • Pre-Newbie
  • Posts: 3
    • View Profile
    • http://www.whatevah.com
Acsess to folders with images without script.
« Reply #8 on: December 22, 2002, 08:34:05 PM »
if you have the access... make a subdomain for your 4images script.  just protect that subdomain with the .htaccess file, and keep videos and stuff on a different domain.

this should solve your problem  (unless you keep those files in 4images)

Offline Fireball22

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Acsess to folders with images without script.
« Reply #9 on: September 24, 2005, 05:09:45 PM »
Bei mir geht da überhaupt nichts!
Wo kann man eigentlich die größe für die normale Anzeige einstellen?
Und gibt es auch einen automatischen Installer für dieses hier?

Fireball22

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Acsess to folders with images without script.
« Reply #10 on: September 24, 2005, 05:50:37 PM »
Schreibe mal in englisch! So hilft dir nie jemand... )o:

Und weisst Du überhaupt um was es hier geht?

Offline Fireball22

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Acsess to folders with images without script.
« Reply #11 on: September 24, 2005, 06:07:13 PM »
Ich weiß schon um was es hier geht, aber mir regt das ganze hier leider derartig auf...!!
Erst funktioniert 4Images ewig wegen einem Fehler nicht, dann kann man nicht mal die Darstellungs-Bildgröße im Menü einfach ändern und das Einbinden der Seite funktioniert auch noch nicht.
Ist aber nicht böse gemeint!   :mrgreen:

Ich stehe im Moment vor der Installation von phpTumb und habe überhaupt keine Ahnung wie das annähernd funktioniert.
Englich kann ich leider noch nicht so gut, bin 13.

Sry!

Fireball22

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Acsess to folders with images without script.
« Reply #12 on: September 24, 2005, 06:12:40 PM »
Also hier geht es darum die Bilder vor dem verlinken auf anderen URL zu unterbinden.

Dafür muss auf dem Apache RewriteEngine laufen ohne dem geht das net.

Aber Du musst in den richtigen Themen posten und auch immer genau sagen was nicht geht und ggf Fehlermeldungen mit posten.

Wenn Du Probleme mit einem Mod/Plugin oder Hack hast dann bitte in den dafür vorgesehen Themen posten.

Offline Fireball22

  • Full Member
  • ***
  • Posts: 187
    • View Profile
Re: Acsess to folders with images without script.
« Reply #13 on: September 24, 2005, 06:55:24 PM »
Vielen Dank!
Werde ich machen!

Fireball22