Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

chmod
https://www.tinywebgallery.com/forum/viewtopic.php?f=4&t=1837
Page 1 of 1

Author:  Pete [ 27. Jan 2009, 10:42 ]
Post subject:  chmod

I had to make the twg folder 777 in order to get the gallery to work. Should I now put a .htaccess in this folder?

Author:  TinyWebGallery [ 28. Jan 2009, 03:04 ]
Post subject: 

always a good idea. Have you read howto 1?

- Michael

Author:  Pete [ 28. Jan 2009, 10:33 ]
Post subject: 

I uploaded my .htaccess file twg folder and now I cannot call index.php.

the .htaccess file was as follows:

-- start
<Files .htaccess>
order allow,deny
deny from all
</Files>

IndexIgnore */*
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com/.*$ [NC]
RewriteRule .(gif|jpg|txt|xml|png)$ - [F]
-- end

I then overwrote that file with the .htaccess file provided in the TWG .htaccess zip file and all is OK.

Please advise way the first didnt work?

Author:  TinyWebGallery [ 30. Jan 2009, 00:10 ]
Post subject: 

what do you like? I should correct the .htaccess file you where trying?

- Michael

Author:  Pete [ 30. Jan 2009, 00:24 ]
Post subject: 

Hi There -

The first one I tried was the one I posted above with the domain name changed for my site. After which I could not load ../twg/Index.php.

I then loaded the .htaccess file you provided in your zip file and let me access as normal.

Is the .htaccess file you provided adequate for security for my site, or do I need to get the other version above to work?

Author:  TinyWebGallery [ 1. Feb 2009, 04:06 ]
Post subject: 

I don't know your site ;).

my .htaccess disallows the access of the txt files.

The script itself is already secure because each parameter is check for possible attacks.

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/