restrict access to the server containing my manialink ?

Talk about ManiaLink development in this forum

Moderator: NADEO

User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: restrict access to the server containing my manialink ?

Post 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 ^^
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    jonasredant
    Posts: 39
    Joined: 10 Aug 2014, 17:26

    Re: restrict access to the server containing my manialink ?

    Post 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
    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2463
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: restrict access to the server containing my manialink ?

    Post 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
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks
      jonasredant
      Posts: 39
      Joined: 10 Aug 2014, 17:26

      Re: restrict access to the server containing my manialink ?

      Post 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?
      Post Reply

      Return to “ManiaLink”

      Who is online

      Users browsing this forum: No registered users and 1 guest