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?
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?
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.
RootSupport.Com - Solutions That Fit On The First Try
::::: AIM: linuxengineers ::::: MSN: msn@rootsupport.com :::::
Twenty Four / Seven Technical Support - Windows & Linux Servers
*Seven days FREE trial available on selected plans
I'm kind of a newby so I apologize.
I'm not sure how to create the .htaccess you mentioned.
You will have to create a .htaccess file in the public_html folder. You can find a tutorial for .htaccess at the following URL http://www.freewebmasterhelp.com/tutorials/htaccess/1
Best luck
RootSupport.Com - Solutions That Fit On The First Try
::::: AIM: linuxengineers ::::: MSN: msn@rootsupport.com :::::
Twenty Four / Seven Technical Support - Windows & Linux Servers
*Seven days FREE trial available on selected plans
Appreciate it.