Jump to content

Rommeo

Members
  • Posts

    313
  • Joined

  • Last visited

Everything posted by Rommeo

  1. Hello, For a project integration I need to give access only to "Test-Robot/2022v11" I was using this code when the test robot's name was just "robot" and it was working fine; RewriteCond %{HTTP_USER_AGENT} !=robot RewriteRule .* - [F,L] This also did not work when the name changed into "Test-Robot" (I guess it's because of the hypen that needs to be escaped?) RewriteCond %{HTTP_USER_AGENT} !=Test-Robot RewriteRule .* - [F,L] Now robot's name is "Test-Robot/2022v11" and I need to write a rule for "starting with Test-Robot" (since the rest "/2022v11" will change), how can I write it? I tried this and no success; RewriteCond %{HTTP_USER_AGENT} !^Test\-Robot/* RewriteRule .* - [F,L] Thank you in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.