![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2001
Location: Murrieta, CA
Posts: 3,620
|
![]() 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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
There can be only one
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
There can be only one
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
|
or format c:
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
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) |
![]() |
![]() ![]() ![]() ![]() ![]() |