| | #1 |
| Member | 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. |
| | |
| | #2 |
| Forum Junkie ![]() | 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. |
| | |
| | #3 |
| Member | 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. |
| | |
| | #4 |
| Rookie Join Date: May 2006 Location: Kentucky
Posts: 16
![]() | 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. |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
