Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Creating Custom FORBIDDEN etc . . .
Old 02-14-2009, 05:58 PM Creating Custom FORBIDDEN etc . . .
Junior Talker

Posts: 2
Name: Evelyn
Trades: 0
The site I'm currently working on > http://althea.cs.umass.edu/ckc/01ckcindex.html < needs a "forbidden" page at http://althea.cs.umass.edu/ckc/ - as it stands, there is a file list (ugly )

This is something I haven't done before. Could someone tell me how (preferably a custom one but the usual will do) or point me to a tutoral?

Thanks.
UptonGirl is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-14-2009, 06:14 PM Re: Creating Custom FORBIDDEN etc . . .
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
.htaccess

Code:
Options -Indexes
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


Last edited by Decaf; 02-14-2009 at 06:16 PM..
Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Old 02-14-2009, 06:26 PM Re: Creating Custom FORBIDDEN etc . . .
Junior Talker

Posts: 2
Name: Evelyn
Trades: 0
Quote:
Originally Posted by Decaf View Post
.htaccess

Code:
Options -Indexes
Sorry to be dim - it's been a long week. Where is it that I put .htaccess ?

The string now ends /ckc/ so - should it be ckc.htaccess -- ckc/.htacess or other? And, if other, what?

Thanks.
UptonGirl is offline
Reply With Quote
View Public Profile
 
Old 02-14-2009, 07:25 PM Re: Creating Custom FORBIDDEN etc . . .
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
just make save the content of the code block in a file callled ".htaccess" with the "all types" of file type selected.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Old 02-15-2009, 12:05 AM Re: Creating Custom FORBIDDEN etc . . .
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
Or you could just create an index.html page that says "FORBIDDEN" and insert it into that directory.
__________________
Get your facts first, and then you can distort them as much as you please. - Mark Twain

Please login or register to view this content. Registration is FREE
---

Please login or register to view this content. Registration is FREE

All My Sites Are Proudly Hosted @
Please login or register to view this content. Registration is FREE

Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Old 02-17-2009, 02:37 AM Re: Creating Custom FORBIDDEN etc . . .
Banned

Posts: 923
Name: Geoff Vader
Location: In my dreams
Trades: 0
Quote:
Originally Posted by Moxxnixx View Post
Or you could just create an index.html page that says "FORBIDDEN" and insert it into that directory.
I'm not messing around with you, the above is a perfect, absolutely perfect, example of how a brilliant programmer/developer's mind must work.

I think that this suggestion is obviously the best solution, and what's so wonderful about it is that it doesn't even use genuine security. It's beautiful. I'm giving it points. I wish I had 1000s more so I'd boost it more than 6 rep points. This is the cleverest thing I've so far found on this site in all my readings. I'd not have thought of it myself.
witnesstheday is offline
Reply With Quote
View Public Profile
 
Old 02-17-2009, 07:10 AM Re: Creating Custom FORBIDDEN etc . . .
Skilled Talker

Posts: 59
Name: Tixy
Trades: 0
really interesting topic If you want to create custom forbidden error you should not give permission to access ckc/ file on this server and create htaccess file under home/httpd/http://althea.cs.umass.edu/ckc/
__________________

Please login or register to view this content. Registration is FREE
&
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
By

Please login or register to view this content. Registration is FREE
cooltixy is offline
Reply With Quote
View Public Profile
 
Old 02-17-2009, 05:01 PM Re: Creating Custom FORBIDDEN etc . . .
Moxxnixx's Avatar
King Spam Talker

Posts: 1,174
Name: Lance
Location: Virginia Beach
Trades: 0
Quote:
Originally Posted by witnesstheday View Post
I'm not messing around with you, the above is a perfect, absolutely perfect, example of how a brilliant programmer/developer's mind must work.

I think that this suggestion is obviously the best solution, and what's so wonderful about it is that it doesn't even use genuine security. It's beautiful. I'm giving it points. I wish I had 1000s more so I'd boost it more than 6 rep points. This is the cleverest thing I've so far found on this site in all my readings. I'd not have thought of it myself.
Well, as William of Occam once proposed, "all things being equal, the simplest solution is usually the best."
__________________
Get your facts first, and then you can distort them as much as you please. - Mark Twain

Please login or register to view this content. Registration is FREE
---

Please login or register to view this content. Registration is FREE

All My Sites Are Proudly Hosted @
Please login or register to view this content. Registration is FREE

Moxxnixx is offline
Reply With Quote
View Public Profile Visit Moxxnixx's homepage!
 
Old 02-17-2009, 05:30 PM Re: Creating Custom FORBIDDEN etc . . .
Decaf's Avatar
Ultra Talker

Posts: 489
Name: Adam
Trades: 0
Quote:
Originally Posted by cooltixy View Post
really interesting topic If you want to create custom forbidden error you should not give permission to access ckc/ file on this server and create htaccess file under home/httpd/http://althea.cs.umass.edu/ckc/
Code:
/ {
            Robots.txt { 
                        User-Agent: *
                        Disallow: /ckc/
            }
}

/ckc/ {
            .htaccess {
                        Options -Indexes
            }
            index.html/.php {
                        <h3>FORBIDDEN</h3>
            }
}
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Decaf is offline
Reply With Quote
View Public Profile Visit Decaf's homepage!
 
Reply     « Reply to Creating Custom FORBIDDEN etc . . .
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.38133 seconds with 12 queries