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.

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:
    1
    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:
    1
    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.
     
  3. Scott45

    Scott45 Member

    Joined:
    Apr 29, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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:
    1
    Location:
    India
  5. Scott45

    Scott45 Member

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

Share This Page