Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Reply
 
Thread Tools
  #1  
Old 08-07-2006, 02:43 AM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Question people seeing my files

hi !
i just realized that anyone can see my files..cause when you type www.mysite.com/anyfolderinpublichtml/ you can see the contents of the directories in my ftp..is there some way to stop that ? or to just redirect people to the main page when they type www.mysite.com/anything ,wether it's a directory or a bad link with an extra letter ??

thanks

saludos
__________________



The random hand of fate delivers me to you.
Reply With Quote
  #2  
Old 08-07-2006, 02:54 AM
Kimbot's Avatar
Kimbot Kimbot is offline
Swamp Croc
 
Join Date: Jan 2006
Location: Koh Samui, Thailand
Posts: 279
Default Re: people seeing my files

Hi.

A couple of things I do to stop this.

1. put an index.html file in there with nothing in it or a text navigation for the site proper.

2. put an index.html file in there with a refresh metatag sending them right back to the page you would rather they were on. Syntax for that tag is:
<meta http-equiv="refresh" content="2;url=http://www.somesite.com/somepage.html">
The number 2 is how many seconds before redirection, set this to 0 if you want, teh second part is the link to send them to)

3. use cpanel, go to the INDEX MANAGER and you can turn off indexing on the directories in question, then they will just see a 404 not found error

Note: you can also set up a custom error page, so rather than seeing 404 not found, they get a page taking them back to home page.

Good luck
__________________
KimBot
Kim Carter - Carsena Web Services
Koh Samui - Thailand
www.carsena-tech.net
www.carsena.net
www.carsena.com

Last edited by Kimbot; 08-07-2006 at 02:57 AM.
Reply With Quote
  #3  
Old 08-07-2006, 04:14 AM
alexmosutheskypirate alexmosutheskypirate is offline
Baby Croc
 
Join Date: Jul 2006
Posts: 58
Default Re: people seeing my files

thanks !! ill do just that...

saludos
__________________



The random hand of fate delivers me to you.
Reply With Quote
  #4  
Old 08-09-2006, 09:20 PM
kbroderick kbroderick is offline
Hatchling Croc
 
Join Date: Jul 2006
Posts: 12
Default Re: people seeing my files

Google for "access control Apache .htaccess"; the above suggestions regarding index controls are all well and good, but any file within public_html can be pulled by anyone with the correct URI unless steps are taken to prevent that.
Reply With Quote
  #5  
Old 08-09-2006, 09:52 PM
Yari Gio Yari Gio is offline
Hatchling Croc
 
Join Date: Jan 2006
Posts: 41
Default Re: people seeing my files

cpanel also has a very simple tool to lock folder shows like that too.
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 09:48 PM.