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!

add forbidden page [moved]

Discussion in 'General Discussion' started by Scott45, May 12, 2006.

  1. Scott45

    Scott45 Member

    Joined:
    Apr 29, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    I'd like to add a forbidden page to my websites. This way if someone tries to access something (like an images directory) a page would come up saying forbidden. Anyone know how to do this?
     
  2. rootsupport

    rootsupport Member

    Joined:
    May 2, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    India
    To stop indexing your files you can create a .htaccess file and add the below code:

    Options -Indexes

    Now, for your customized 404 page. You can do it from cPanel > ErrorPages.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Scott45

    Scott45 Member

    Joined:
    Apr 29, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    I'm kind of a newby so I apologize.
    I'm not sure how to create the .htaccess you mentioned.
     
  4. rootsupport

    rootsupport Member

    Joined:
    May 2, 2006
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    India
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Scott45

    Scott45 Member

    Joined:
    Apr 29, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    151
    Appreciate it.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice