Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-13-2002, 03:02 PM   #1
Due
Confirmed User
 
Due's Avatar
 
Industry Role:
Join Date: Mar 2001
Location: Murrieta, CA
Posts: 3,620
Need help from a htaccess guru

I've been trying to figure out how I can set a .htaccess up so it will only be allowed to link to a few selected files.
IE.
index.php out.php signup.php and some other files should be allowed.
If someone is trying to enter the site through any other pages than the one that where approved they should be redirected to www.domain.com/index.php even though the other file exist.
How is that possible?
__________________
I buy plugs
Skype: Due_Global
/Due
Due is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2002, 03:03 PM   #2
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
put index.php in it's own directory, put everything else in a subdirectory, and htaccess the subdirectory.
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2002, 03:04 PM   #3
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
or format c:
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2002, 03:04 PM   #4
Mango
Confirmed User
 
Join Date: Aug 2001
Posts: 474
Due,

I suggest that you remove the files that should not be displayed and redirect those requests to a 404 through .htaccess
If no-one is supposed to see the files, you better remove them

Brgds;

Carl
__________________



SponsorReport.com : the MASSIVE SPONSOR TEST PROJECT. 100% neutral and verified submissions only.
Launched April, 7 - Get your FREE T-SHIRT NOW !
We will send our webmasters to YOUR sponsor with YOUR referral ID
Mango is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2002, 03:09 PM   #5
Due
Confirmed User
 
Due's Avatar
 
Industry Role:
Join Date: Mar 2001
Location: Murrieta, CA
Posts: 3,620
Mango>
That would in a normal situation.
But this is for a CJ freehost where I offer script, domain and hosting for the CJ site (and offcourse I prefer offering FTP) but somehow people think it is cool to upload galleries and shit and submit to TGP's etc. so when people try that it will just be redirected straight away (and also declined and blacklistet by the TGP reviewer for redirecting)
Due is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.