NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Web Design Discussion
Reload this Page .htaccess

Web Design Discussion Discussion of web design techniques, advice, browser issues, software, design firms.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 04-27-2005, 04:59 AM THREAD STARTER               #1 (permalink)
D@Z
NamePros Member
Join Date: Jun 2004
Location: United Kingdom
Posts: 165
D@Z is on a distinguished road
 



.htaccess


Recently I've been looking up .htaccess to protect my content which is in folders on my host.

I followed a tutorial online that showed me how to deny all IP address apart from my own. This caused a big problem. It worked - but images then would not work on my website and people could not link my button etc.

This also happens to me when I password protect my directories via cPanel. Is there an easy way of doing this?

I basically want all my folders forbidden to everyone apart from me, yet the images or whatever content is in the folder still shows on the webpage.

Thanks very much for your help!
D@Z is offline  
Old 04-27-2005, 06:26 AM   #2 (permalink)
Account Closed
 
nicedomain4sale's Avatar
Join Date: Mar 2005
Location: Singapore
Posts: 673
nicedomain4sale has a spectacular aura aboutnicedomain4sale has a spectacular aura about
 



Turn off the index of folder by using Index Manager on CPanel.

Use robot.txt to disallow spider crawl your folder.
This is an example:
Code:
User-agent: * 
Disallow: /administrator/
Disallow: /cache/
===
If you use password protect, then all content inside is forbidden for whom doesn't the password.
nicedomain4sale is offline  
Old 04-27-2005, 06:42 AM   #3 (permalink)
Account Closed
 
Mystic's Avatar
Join Date: Feb 2005
Location: England
Posts: 1,169
Mystic is just really niceMystic is just really niceMystic is just really niceMystic is just really nice
 



aint robots.txt just there for search engines? i may be wrong but..
Mystic is offline  
Old 04-27-2005, 07:28 AM THREAD STARTER               #4 (permalink)
D@Z
NamePros Member
Join Date: Jun 2004
Location: United Kingdom
Posts: 165
D@Z is on a distinguished road
 



i went into Index Manager in cPanel and put it as "No Index" on my folders. I then visited my folders and a 403 Forbidden message shown. Hopefully this will work for everyone.

thanks very much for your help!
D@Z is offline  
Old 04-27-2005, 08:31 AM   #5 (permalink)
Account Closed
 
nicedomain4sale's Avatar
Join Date: Mar 2005
Location: Singapore
Posts: 673
nicedomain4sale has a spectacular aura aboutnicedomain4sale has a spectacular aura about
 



Originally Posted by xtreme-forums
aint robots.txt just there for search engines? i may be wrong but..
Yes, in fact there are two steps, turn off directory indexing, and use robot.txt
????: NamePros.com http://www.namepros.com/web-design-discussion/85648-htaccess.html

If you don't use robot.txt , then someone can steal file (example .psd file) on your directory using Google.
nicedomain4sale is offline  
Old 04-27-2005, 09:27 PM   #6 (permalink)
Account Suspended
Join Date: Apr 2005
Posts: 319
brianfast is on a distinguished road
 



how exactly do they do that?
brianfast is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 12:56 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger