Skip to main content
We are currently experiencing a higher than average ticket volume and as such our responses may be delayed. Searching on our Help Center articles or going to our Community is also a great resource for answers.

RewriteCond and RewriteRule

Answered

Comments

3 comments

  • cPRex Jurassic Moderator

    Hey there!  Not teeeeeechnically related to cPanel, but I'll give it a shot :D

    It looks like this is taking direct access to images and returning a 403 Forbidden error to the client.  F is the forbidden error and NC make the file case-insensitive.

    https://httpd.apache.org/docs/2.4/rewrite/flags.html

    The first two rules there seem to setup what gets rewritten, so it can either be the exact domain.com/image or a subdirectory.

    0
  • jeffschips

    Thank yhou cPRex - I finally figured that out and yes that's correct.  It's to stop vagrants from shopping my images in my sites.  Appreciate the fast response.  SOLVED

    0
  • cPRex Jurassic Moderator

    You're very welcome!

    0

Please sign in to leave a comment.