Page 6 of 8

Posted: Sat Nov 24, 2007 2:58 am
by TheCrymsonLegends
(Off-Topic) I may have to change it up to get some people interested in **** it, probably isn't the best way to get someone to **** on it by being on a hosting website but some people have fallen for it. Woohoo. (/Off-Topic)

But anyway banning IPs automatically would be sweeter in order to get the out of your server files. I know there are some scripts that block bots and suspicious activity but it only covers the files it has to, some other files are still left wide open, so I just put in some html files saying "STAY OUT OF DIRECT FOLDERS" Low code and effective.

Posted: Sat Nov 24, 2007 3:48 am
by Tails5
How does it work if it just has "STAY OUT OF DIRECT FOLDERS"? Where would I put the file? (Sorry for posting delay, right after my last post, Google Web Accelerator broke my browser, and I couldnt receive any web pages, now its gone my computer even starts in 3 minutes, as opposed to the normal 15)

Posted: Sat Nov 24, 2007 3:51 pm
by TheCrymsonLegends
SHAdmin brought this to my attention so I have to give him credit for this kinda simple way to help keep people away from directories.

Lets say you have your main site with an index.html or index.php and then you have sub-folders which would hold modules/includes/database information and such. If you put that direct sub-folder you then gain access to view those files inside of them. So any folder that you do not have an index.php or index.html or any index file of any server read extension you would want to put the new index.html file with a simple "Stay out of my directories" Since the server automatically brings up index files with proper extensions no one can nor will ever be able to get into your directory folders. Now there is another code to put in the files which make up your website to prevent people from viewing that file directly, but I do not know that exactly line of code. But for now a simple .html file in each folder which doesn't include one already would be enough to keep anyone out of them. Hope that helps :). Thanks SHAdmin for bringing that to my attention to giving me that idea... quite ingenious.

Posted: Sun Nov 25, 2007 1:29 am
by iBye
Haha, yeah. I actually **** on it, not because I believe what was written, but to find out what site it was :)

Posted: Sun Nov 25, 2007 2:32 am
by Tails5
How about an page... say forums/store/index.html that says [html]<meta http-equiv="Refresh" content="0,http://yoursite.com/forums/index.php">[/html]

Posted: Sun Nov 25, 2007 8:55 am
by TheCrymsonLegends
That is actually pretty intelligent idea, having the pages refer anyone back to the main page. It wouldn't give anyone the idea of them trying to access a web directory but simply redirecting them back to the original index file.

Thanks for that idea and the website in my profile is to Flipper's game. This is his third version and getting very good, it's sorta addictive lol.

Posted: Mon Nov 26, 2007 5:06 am
by Tails5
Another way is to have a .php page that has the code [php]<?php
header("Location: http://yoursite.com/forums/index.php");
?>[/php]

Posted: Mon Nov 26, 2007 6:11 am
by TheCrymsonLegends
I suppose that would work, I will try it out once I get the time to do so :D. Thanks.

Posted: Tue Nov 27, 2007 12:34 am
by Flipper3
Well, I was inspired to make my first How-To because of you guys:

http://www.smokyhosts.com/forums/showthread.php?t=4915

All of the ways already stated will work, but in my opinion will not be as effective. ;)

Posted: Tue Nov 27, 2007 7:11 am
by Tails5
I like your How-To, but .htaccess files have NEVER worked for me! It just shows the page anyway. I have order set to allow,deny and allow set to my user,deny set to all, I set up the users file, and it still just shows the index anyway!