Page 2 of 2

Re: restrict access to the server containing my manialink ?

Posted: 15 Aug 2014, 18:02
by steeffeen
the user-agent of IE 10 is for example is

Code: Select all

Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Win64; x64; Trident/6.0)
that's why your filter doesn't work

i just checked and the mentioned "BrowserMatch" is the same as writing "SetEnvIf User-Agent"
there's also SetEnvIfNoCase and BrowserMatchNoCase for case-insensitivity
(maybe it's "GameBox" so you could try those)

right now i don't know why your two-rules example doesn't work but you should be able to simply name both environment variables (what i called "filter name") the same and only write a single Deny

p.s. using proper

Code: Select all

 tags makes it easier to read your posts ^^

Re: restrict access to the server containing my manialink ?

Posted: 15 Aug 2014, 22:07
by jonasredant
Ok, I finally managed to allow only Trackmania to download the files:

Code: Select all

# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase /
SetEnvIfNoCase User-Agent GameBox goed
Order Allow,Deny
Allow from env=goed
You were kinda right all along, I just messed up. Thx for the help!!
Is that code save? I mean is there a possiblity that someone can't download a horn in the game,
because I just allowed GameBox and I don't have an understanding of how these user-agents work...

Have a few small questions left:

- how can I clean my cache?
- is it possible to clean someone's cache after visiting my manialink?
- is it possible not to create a loc file when someone downloads stuff from my manialink?

Kind regards,

Jonas

Re: restrict access to the server containing my manialink ?

Posted: 15 Aug 2014, 22:28
by steeffeen
glad i could help :D

i don't have a PC around so i can't help you with the cache folder location, it might be in the AppData folder but that's just a guess

you can't prevent or clean the cache just by your manialink

Re: restrict access to the server containing my manialink ?

Posted: 15 Aug 2014, 22:39
by jonasredant
Ok, found it. What a mess was in there...
Would it be possible not to create a loc file when someone downloads stuff from my manialink?