3rd party libraries (vendors) and .htaccess

Is it a bad thing to add a .htaccess file and put it in a 3rd party library? Like /vendor/3rdPartyLibrary/.htaccess. I know that sometimes 3rd party libraries don’t include .htaccess, but I mean it’s not ok for anyone to just go and snoop around your folders so it’s best to just deny all from looking through the folders.

I mean you really aren’t claiming the 3rd party as yours. You’re just adding a file to protect yourself.

Is it safe to say that this isn’t tempering with the actual 3rd party library?

I’m not entirely sure I understand your question.

If the folder/directory resides on your site, then you can deny access to it via the .htaccess file in your site root.

Oh, my question was basically, does it violate the GNU license if you are tying to add a new file like .htaccess to deny people from accessing the folders?

Basically because since most 3rd party libraries are released under the GNU license and is free to distribute, I wasn’t sure if adding something like the .htaccess would violate the GNU license.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.