Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Deny file access with nginx

Discussion in 'General Discussion' started by morteza3245, Nov 22, 2016.

Tags:
  1. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    127
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello

    i want when users run my css or html or etc files directly, they see permission denied, like this website: - Removed -

    how i can do it?
    what code i should put in htaccess ?

    thanks.
     
    #1 morteza3245, Nov 22, 2016
    Last edited by a moderator: Nov 22, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page