Multiple user agent strings in 1 htaccess file

318 Views Asked by At

I want to include multiple agent strings in 1 htaccess (or multiple if that is needed a.k.a each file for new agent string) file and I am not sure if that is possible

This is my current code

SetEnvIfNoCase User-Agent "PRIVATESTRING" good_bot
<FilesMatch ".exe">
    Order Deny,Allow
    Deny from All
    Allow from env=good_bot
</FilesMatch>

PRIVATESTRING is because I am using an app that sends a custom user agent string as user logs in to download an item from my website

EDIT: Answer: Repeat first line multiple time for each string

0

There are 0 best solutions below