Hi,

 

My original  images stored under /orgimages/ folder and public watermark photos stored under /originalimages/watermark/

It's looking like as this as url based from phpfox; http://asd.com/originalimages/watermark/15484151.jpg

when someone delete watermark from url they can access to original photo like this: http://asd.com/originalimages/15484151.jpg

 

How can i protect this orignalimages folder frow web?

So, it must accessable only from localhost not from web.

Be the first person to like this.
Neil

Hi,

 

My original  images stored under /orgimages/ folder and public watermark photos stored under /originalimages/watermark/

It's looking like as this as url based from phpfox; http://asd.com/originalimages/watermark/15484151.jpg

when someone delete watermark from url they can access to original photo like this: http://asd.com/originalimages/15484151.jpg

 

How can i protect this orignalimages folder frow web?

So, it must accessable only from localhost not from web.

 

Hi Efex,

 

These paths are not followed phpFox file structure. Could you give more detail about your issue.

 

Regards.

Be the first person to like this.

 

 

Hi Efex,

 

These paths are not followed phpFox file structure. Could you give more detail about your issue.

 

Regards.

 

It's my own customization. 

Be the first person to like this.
JohnJr

Well if you have a dedicated server your directory will look like this depending on your server configuration.

Home Directory - Main Folder

Error_docs (Main Sub Folder)

httpdocs (Main Sub Folder) - PF.Base, PF.Site, PF.Src (httpdocs Sub Folder)

Logs (Main Sub Folder)

NewPictureFolder (Main Sub Folder) Then give no read rights

Be the first person to like this.

my app use it for generating cache, so it must be under public_html folder.

Be the first person to like this.
Neil

Hi Efex,

 

If you use apache, you can ignore index by adding this htaccess code:

 

Options -Indexes

Regards.

Be the first person to like this.