Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Old 12-11-2006, 09:31 PM   #1
Ant
Member
 
Join Date: Mar 2006
Location: Christchurch, Dorset
Posts: 118
Ant has a spectacular aura aboutAnt has a spectacular aura aboutAnt has a spectacular aura about
Send a message via AIM to Ant Send a message via MSN to Ant Send a message via Yahoo to Ant Send a message via Skype™ to Ant
Question CHMOD 777

hey, hope i explain this right:

I'm worried about having a directory set to 777 but need to upload photos to it, so was wondering if i could have the pics in say abcd/picture.jpg but have them in the code as vxyz/picture.jpg and use .htaccess to show the right picture.

That way the directory that is set to 777 will never appear in the source code and therefore be far less vulnerable to attack, will this work? is it worth doing??

cheers

Ant
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Ant is offline   Reply With Quote
Old 12-11-2006, 10:41 PM   #2
Forum Junkie
 
Jolteon's Avatar
 
Join Date: Feb 2006
Location: Holmfirth, England
Posts: 3,699
Jolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant futureJolteon has a brilliant future
Send a message via MSN to Jolteon
You shouldnt be overly worried about having a folder set to 777, otherwise every forum owner would be in a state of panic about having an uploads folder, or an avatar folder.
__________________
Ack, no currently active projects
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Jolteon is offline   Reply With Quote
Old 12-11-2006, 10:44 PM   #3
Ant
Member
 
Join Date: Mar 2006
Location: Christchurch, Dorset
Posts: 118
Ant has a spectacular aura aboutAnt has a spectacular aura aboutAnt has a spectacular aura about
Send a message via AIM to Ant Send a message via MSN to Ant Send a message via Yahoo to Ant Send a message via Skype™ to Ant
But it can be abused, we've had it on other sites, i'd like to remove the target if my solution is viable
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Ant is offline   Reply With Quote
Old 12-13-2006, 02:38 AM   #4
Rookie
 
Join Date: May 2006
Location: Kentucky
Posts: 16
SecondV is on a distinguished road
Yes it would work, but I agree with Captain Kirk.

Here's some .htaccess that may help you.
Code:
RewriteEngine On
RewriteRule ^vxyz/([a-z0-9]+)\.(jpg|gif|png)$ abcd/$1.$2 [NC,L]
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- PHP tutorials, scripts, discussion forums, and much more for the PHP developer.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
SecondV is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

AdminFusion

All times are GMT +1. The time now is 04:56 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77