Good question... I dunno what is the answer. I'll do some investigation and get back to you if I find an useful answer. You should email the people at iPage as they probably could give you an answer..
How did you do that? I mean block access to those pages?..
I was having trouble figuring out how to do this using the PHP method because of the sub-directories involved, so I just viewed source on an existing page, copied that to my HTML editor, then cut and pasted to get the basic layout worked out. Then had to delete all references to PHP, etc., and saved it as images/index.html. Upload /images/index.html to your catalog/images directory and you should get similar results with your own page....
HTH,.
Terry..
Well I just tried to block access through the cpanel and I can block the /images folder and put a password on it but.... Whenever you go to my iPage site you have to type the password for every picture that loads...
Just a note: If using images, you'll have to hard-code the references to them. For example, on my site, for the images/index.html directory, images are coded as:.
<IMG SRC="logokid20t.gif" ALT="KIDiddles" WIDTH="415" HEIGHT="68" BORDER="0" VSPACE="0" HSPACE="0">.
I also put a similar file in the downloads directory. For that one, I had to change the image call to:.
<IMG SRC="../images/logokid20t.gif" ALT="KIDiddles" WIDTH="415" HEIGHT="68" BORDER="0" VSPACE="0" HSPACE="0">.
HTH,.
Terry..
I still don't understand how you get that to work. How do you set up the access part of it? Or redirect them to the "forbidden" page?..
I coded the 'Access Restricted' text into the index.html page that I put in the folder..
No magic to this honest!.
Terry..
Not sure how helpful this will be, but maybe it will give you an idea on how to do it yourself... Here's my /images/index.html code:.
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">.
<html>.
<head>.
<TITLE>KIDiddles: Access Restricted</TITLE>.
<META NAME="Author" CONTENT="Terry Kluytmans">.
<META NAME = "description" CONTENT = "KIDiddles (Not your Average Kids' site) offers the lyrics to hundreds of children's songs and lullabies, as well as stories, games, contests and other fun stuff!">.
<META NAME = "keywords" CONTENT = "children, kids, music, songs, lullabies, lullaby, lullabye, lyrics, contests, prizes, free, stories, story, puzzle, puzzles, crossword, games, fun">.
<link rel="stylesheet" type="text/css" href="../stylesheet.css">.
</head>.
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">.
<table border="0" width="100%" cellspacing="0" cellpadding="0">.
<tr class="header">.
<td class="headerNavigation4" valign="top" WIDTH="415"><A HREF="http://www.kididdles.com" TARGET="_blank"><IMG SRC="logokid20t.gif" ALT="KIDiddles" WIDTH="415" HEIGHT="68" BORDER="0" VSPACE="0" HSPACE="0"></td>.
<td align="right" COLSPAN="2" WIDTH="100%" class="headerNavigation2" valign="top"> </td>.
</tr>.
<tr>.
<td class="headerNavigation4" valign="top" WIDTH="415"><IMG SRC="logokid20b.gif" ALT="KIDiddles" WIDTH="415" HEIGHT="85" BORDER="0" VSPACE="0" HSPACE="0"></A></td>.
<td align="left" WIDTH="100%"><IMG SRC="logokidspacerb.gif" ALT=" " WIDTH="100%" HEIGHT="85" BORDER="0" VSPACE="0" HSPACE="0"></td>.
<td align="left" width="150"><IMG SRC="cornerrightb.gif" ALT=" " WIDTH="150" HEIGHT="85" BORDER="0" VSPACE="0" HSPACE="0"></td></tr>.
</table>.
<table border="0" width="100%" cellspacing="0" cellpadding="0">.
<tr>.
<td width="150" valign="top" BGCOLOR="#ccff00"><table border="0" width="150" cellspacing="0" cellpadding="0">.
<tr>.
<td> </td>.
</tr>.
</table></td>.
<! body_text //>.
<td width="100%" valign="top"><div align="center"><table border="0" width="90%" cellspacing="0" cellpadding="0">.
<tr>.
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.
<tr>.
<td class="pageHeading">Access Denied</td>.
<td class="pageHeading" align="right"> </td>.
</tr>.
</table></td>.
</tr>.
<tr>.
<td><IMG SRC="pixel_trans.gif" ALT=" " WIDTH="100%" HEIGHT="25" BORDER="0" VSPACE="0" HSPACE="0"></td>.
</tr>.
<tr>.
<td class="main">Oops! Access to this area is restricted. Please return to our <A HREF="../index.php">catalog</A> to continue browsing the store.</td>.
</tr>.
<tr>.
<td><IMG SRC="pixel_trans.gif" ALT=" " WIDTH="100%" HEIGHT="20" BORDER="0" VSPACE="0" HSPACE="0"></td>.
</tr>.
</table></div></td>.
<td width="150" valign="top" BGCOLOR="#ccff00"><table border="0" width="150" cellspacing="0" cellpadding="0">.
<! right_navigation //>.
<tr>.
<td> </td>.
</tr>.
</table></td>.
</tr>.
</table>.
<! body_eof //>.
<table border="0" width="100%" cellspacing="0" cellpadding="0">.
<tr>.
<td class="main" width="150"><IMG SRC="bottomleft.gif" ALT=" " WIDTH="150" HEIGHT="153" BORDER="0" VSPACE="0" HSPACE="0"></td><td class="main" width="400"><IMG SRC="bottommiddle3.gif" ALT=" Call to Order" WIDTH="400" HEIGHT="153" BORDER="0" VSPACE="0" HSPACE="0"></td><td class="main" width="100%"><IMG SRC="bottomspacer.gif" ALT=" " WIDTH="100%" HEIGHT="153" BORDER="0" VSPACE="0" HSPACE="0"></td><td class="main" width="150"><IMG SRC="bottomright5.gif" ALT=" " WIDTH="150" HEIGHT="153" BORDER="0" VSPACE="0" HSPACE="0"></td></tr>.
</table>.
<table border="0" width="100%" cellspacing="0" cellpadding="0">.
<tr>.
<td align="center" class="smallText">.
<br><a href="http://www.kididdles.com" target="_blank">Copyright © 1998-2004 KIDiddles.com</a><BR><a href="http://www.oscommerce.com" target="_blank">Powered by osCommerce</a> </td>.
</tr>.
</table>.
<br>.
<! footer_eof //>.
<br>.
</table>.
</body>.
</html>.
HTH,.
Terry..
Ok I got it? I just added a redirect so that when you type mysite.com/images it sends you back to mysite.com but there's one picture that won't show up.
I'll figure it out,.
Thanks..
Nope, I don't mind at all. If your store isn't set up with the same table layout as mine though, you'll have to tweak the code. (As you can see when you click on the link I supplied in my first post, I have the entire page surrounded by images...).
Terry..
Thanks for letting me borrow.
I just deleted everything except for:.
I'll make it look better another day..
You can see it here:.
Http://www.aplus-com...catalog/images/..
Hey, anyone know how to stop people from typing the url to a folder and seeing the contents? I guess I could put in index.html files in all the folders but is there a htaccess command I can throw in the parent folder? I dont want to have to put it in all the sub folders too..
Thanks.
Ryan..
I just created an index.html page that matched my store layout (minus all the links and stuff) and ftp'd it to my images directory. See:.
Http://www.kididdles.../catalog/images.
HTH,.
Terry..

