A webmaster forum specifically catering for Australian site owners. We discuss site development, marketing and management issues.
Please welcome our newest member, Jors308932!
Spice up your web site with the ultimate community message board solution!
Fake Id'sGet fake Id's made right now!
vBSEOSearch Engine Optimization for your VBulletin Forum.
AdminFusion
»
CHMOD 777
| | #1 |
| | |||||
| Title: Member Join Date: Mar 2006 Posts: 116 Location: Christchurch, Dorset ![]() ![]() ![]() | 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
__________________ Stargate Forum! - Discuss SG-1, Atlantis and other great Sci-Fi shows!! DiscussDreams.com - Dream Discussion and Analysis Just a Face? - Post a picture and see who the world thinks you are! | ||||
| |
| | #2 |
| | #3 |
| | |||||
| Title: Member Join Date: Mar 2006 Posts: 116 Location: Christchurch, Dorset ![]() ![]() ![]() | But it can be abused, we've had it on other sites, i'd like to remove the target if my solution is viable
__________________ Stargate Forum! - Discuss SG-1, Atlantis and other great Sci-Fi shows!! DiscussDreams.com - Dream Discussion and Analysis Just a Face? - Post a picture and see who the world thinks you are! | ||||
| |
| | #4 |
| | |||||
| Title: Rookie Join Date: May 2006 Posts: 16 Location: Kentucky ![]() | 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]
__________________ PHPSociety.com - PHP tutorials, scripts, discussion forums, and much more for the PHP developer. | ||||
| |
