GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Need help from a htaccess guru (https://gfy.com/showthread.php?t=50814)

Due 02-13-2002 03:02 PM

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?

Amputate Your Head 02-13-2002 03:03 PM

put index.php in it's own directory, put everything else in a subdirectory, and htaccess the subdirectory.

Amputate Your Head 02-13-2002 03:04 PM

or format c:

Mango 02-13-2002 03:04 PM

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

Due 02-13-2002 03:09 PM

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)


All times are GMT -7. The time now is 04:55 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123