Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Avatar directory
#1
Not Solved
I'd like to use .htaccess in the uploads and video directories to deny from all which still allows php to provide the attachment but avatars within uploads don't work. The auth box pops up. Can I move the avatars directory the site root and how to?

Many thanks,
Peter
Reply
#2
Not Solved
Hello,
I believe doing that would require a lot of core edits and cause a whole bunch of compatibility issues; are you sure there's no other solution? Why do that in the first place?
Let's be nice Smile
Reply
#3
Not Solved
(01-15-2020, 10:21 PM)mTurtle_ Wrote: Hello,
I believe doing that would require a lot of core edits and cause a whole bunch of compatibility issues; are you sure there's no other solution? Why do that in the first place?

I have 265,000 attachments. I really don't want my upload directory being used by the would. I'm not sure if I can but turning off avatars my be a solution.

Or I my be able to deny from all in uploads but allow from all in avatars. Seems to me .htaccess may have that posibility.

With VB you store attachments out of root but all other images are in the web root.

Cheers and thanks for the response.
Peter
Reply
#4
Not Solved
Did you try this tip : https://electrictoolbox.com/apache-remov...directory/ ?
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Reply
#5
Not Solved
(01-15-2020, 10:29 PM)Seeker-Smith Wrote:
(01-15-2020, 10:21 PM)mTurtle_ Wrote: Hello,
I believe doing that would require a lot of core edits and cause a whole bunch of compatibility issues; are you sure there's no other solution? Why do that in the first place?

I have 265,000 attachments. I really don't want my upload directory being used by the would. I'm not sure if I can but turning off avatars my be a solution.

Or I my be able to deny from all in uploads but allow from all in avatars. Seems to me .htaccess may have that posibility.

With VB you store attachments out of root but all other images are in the web root.

Cheers and thanks for the response.
Peter

I believe you could add a directive specifically for the avatars directory like this:
<Directory "avatars/">
    ...
</Directory>

Edit: Please check Crazycat's answer above as well.
Let's be nice Smile
Reply
#6
Not Solved
Thanks I think this should work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)