mitchellmckain
Jul 3 2005, 03:58 AM
| | I know that subdirectories in public_html are accessible to the public on the web if you know their name (the name of the subdirectory). The question is whether there is any easy way to get at them if you do not know their name. Files in these subdirectories are conveniently accessible to you on the web, but how secure are they? Do web crawlers find them and make them accessible to a search even if they contain no html files? |
Reply
miCRoSCoPiC^eaRthLinG
Jul 3 2005, 04:07 AM
See the best way to protect these subfolders is to chmod them to +750 - that way no one from the outside world can get to those directories - but your own files in the main directory can call them and read off them... A good way of stopping bots from indexing these is to play around with the settings in robots.txt file OR I'd suggest an alternative method - I find very useful. Create a completely blank index.html file with just <HTML></HTML> tags and place it in these directories. When the bots - or any random surfer gets to your directory by guesswork - they're forced to a dead halt right there with a completely blank page... Otherwise, say, if your directory contains only images, anyone can view all your images in a directory listing format by entering the whole URL+directory in the browser.. but having a blank index.html stops that completely. That way you don't even need to mess around with chmod. Simple but Very Effective  Regards, m^e
Reply
runefantasy
Jul 3 2005, 04:30 AM
There's an easy option... Just go to cpanel, click on index manager, and for each subfolder click on it and select 'no indexing' then people can't see all your files
Reply
miCRoSCoPiC^eaRthLinG
Jul 3 2005, 04:40 AM
Oh how cool  I never knew that.. hehe.. thanks runef
Reply
mitchellmckain
Jul 3 2005, 03:04 PM
All this is useful info, but.... Won't the chmod and blank index.html block my own easy access too? Does the 'no indexing' just block the web crawlers or does it just mean you cannot see the directory contents of the subdirectory? The idea is to have a subdirectory only I know about so I can easily call it up on the web and as long as no one else knows the name of the subdir they cannot get to it. So I guess I just need to block the web crawlers since apparently (if I understand you) the index.html blocks public access to the directory listing of the public_html directory. So no one can find out the name of the subdirectory if they do not know it already, right? how do the webcrawlers find it?
Reply
miCRoSCoPiC^eaRthLinG
Jul 3 2005, 03:36 PM
I dunno about the cPanel indexing thingie - my guess is that it writes some code into the robots.txt file with a "nofollow" so that directory wouldn't be indexed by the robots. Webcrawlers, obviosuly index by following links... they cannot start making up random directory names - so in case u have some private folder deep within the public_html which only you know of .. give it some random hex name (like a4b1c8d0) or sumthing - and you've got some index.html/php in place in the root public_html folder (which doesn't have any sort of link to this dir or to any page containing links to this dir) - they no crawler can get to ur folder... Still it is advisable that you place a small index.php script in this folder of yours that can ask for authentication - some password and only then let you into the dir.. that'd be a much better option.. Regards, m^e
Reply
Trojan
Jul 3 2005, 03:47 PM
What you're asking for sounds rather difficult to do. The first step would be to stop Search Engines getting to it - robots.txt is the ideal way, but I don't know how else to help you there. Sorry I can't be of much assistance.
Reply
miCRoSCoPiC^eaRthLinG
Jul 3 2005, 05:03 PM
Search for "robots.txt" on the asta forums. NilsC wrote a two-part series on robots and their methodology - excellent articles. They should help you a lot along the way. Regards, m^e
Reply
Similar Topics
Keywords : public, access, subdirs, public, html, security
- Security Questions
(3)
Url File-access Is Disabled In The Server Configuration
(7) As per the php documentation:- CODE // Won't work; looks for a file named
'file.php?foo=1&bar=2' on the // local filesystem. include 'file.php?foo=1&bar=2';
// Works. include 'http://www.example.com/file.php?foo=1&bar=2'; So, I used the
following code to include the header.php file which I use to draw the top navigation menu on my
site. CODE It worked before, but now I see the following errors on my page. QUOTE
Warning: include() : URL file-access is disabled in the server configuration in
/home/ntek/public_html/pro....
AW Stats: Love em! Can't access them :(
Love em! Can't access them! (4) Hi Guys, New to hosting here and SO HAPPY especially to see that you have AWStats. Had them at my
old host and they are terrific! Can't believe how many features are offered here for FREE
hosting /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
However, I didn't have to configure my AWSTATS at my old host so I don't know how. When I
try to access the stats, I get the following error message: QUOTE Error: Couldn't open
config file "awstats.welcometothefair.com.conf" nor "awstats.conf" after searching in path "....
Cant Access My Account
(1) ve uploaded all the files via FTP to my site but for some reason whever I try to view the pages in a
browser it simply comes up with an error message. The only page I can get is the defaul AstaHost
page you get when you first goto your site and havent made a new website to take its place? My url
is: http://tazum.astaplace.com I should have a page at: http://tazum.astaplace.com/index.php
But it wont work? I simply get this error message: Not Found The requested URL /index.php was not
found on this server. Additionally, a 404 Not Found error was encountered whil....
Is There Anyway To Get Telnet Access?
(3) Is There Anyway To Get Telnet Access? Here is another crazy request. I would like to run the
Entropy Search index builder every couple of days or so. Is there any way to schedule this as a
CRON job?....
Ssh Access - Could I Get It Back
(0) I posted this to the requests forum a while ago but nothing happened... So I though to try here. I
can't log on using SSH, so could I get it back enabled. I need SSH access for SCP file
transfers. I'm FTPhobic.....
Php & Html Can You Mix Them Together?
helpy me pleasey :) (1) Write i have made my site and uploaded it, it is a combonation of php mysql and html. my frame work
is in html and my scripts are in php but the problem i am having is that it will not connect to the
database, but i did put all the information in like user name, pass for the database and the past
like mrogers_PaperPhp. witch PaperPhp is my database name. I had it running on another hosting place
and it worked fine i uploaded the exact same one but changed the passwords to the database but still
nothing happeneing /sad.gif' border='0' style='vertical-align:middle' alt=....
Html
(2) where to upload html files in my file manager can anyone tell me.....
Another e-mail question
pop 3 access (7) Hi, I'm still trying to find out how I can get e-mail through my pop3 email client. Where can I
find the pop3 server addr, smpt server addr and why not imap server addr. Please help me...:-)
Brgds Jens....
Looking for public, access, subdirs, public, html, security
|
*SIMILAR VIDEOS*
Searching Video's for public, access, subdirs, public, html, security
|
advertisement
|
|