• Welcome to Simple Machines Community Forum. Please login or sign up.
December 06, 2021, 11:01:08 AM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


Htaccess in 2 dirs

Started by Owdy, August 01, 2017, 03:33:02 AM

Previous topic - Next topic

Owdy

Hello

I have these in packages and cache dir

<Files *>
Order Deny,Allow
Deny from all
</Files>


Why those are in there? :)
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

aegersz

you should have the same in your attachments dir (and any other dirs that you have in place below for primary web dir).

it stops people from being able to view your internal files if they try to specifically navigate to that directory by doing:

https://your-forum/attachments/ ... or ... https://your-forum/packages/

they should be denied and get a 403 error:

Forbidden

You don't have permission to access /attachments/ on this server
.
The configuration of my Linux VPS (SMF 2.0 with 160+ mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum). My (House) music DJ dedication page is here

Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Advertisement: