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)
-   -   .htaccess gurus (https://gfy.com/showthread.php?t=781975)

latinasojourn 11-04-2007 02:41 PM

.htaccess gurus
 
i need a little help creating an .htaccess file that will do the following:

let's say i have 2 servers, and i want the referring domains of the one server to be able to access some specific html pages, or image or video files on the other server.

and i want to redirect everyone else who might try to access those pages to a promo page.

(the application is to use multiple servers to store members only content.)

and let's say that there might be about 30 domains only that would to be able to access the protected pages, and everyone else would be redirected.

how would that .htaccess file be written?

thanks for any help!

amateurcanada 11-04-2007 02:43 PM

http://www.wiscocomputing.com/articl...g_htaccess.htm Below you can see redirection and referral information, this may accomplish what you seek.

GrouchyAdmin 11-04-2007 02:44 PM

Carefully.

StarkReality 11-04-2007 04:44 PM

Quote:

Originally Posted by latinasojourn (Post 13330179)
i need a little help creating an .htaccess file that will do the following:

let's say i have 2 servers, and i want the referring domains of the one server to be able to access some specific html pages, or image or video files on the other server.

and i want to redirect everyone else who might try to access those pages to a promo page.

(the application is to use multiple servers to store members only content.)

and let's say that there might be about 30 domains only that would to be able to access the protected pages, and everyone else would be redirected.

how would that .htaccess file be written?

thanks for any help!

You are asking for spoofers if you protect members pages this way, don't do it !

Damian_Maxcash 11-04-2007 04:47 PM

Quote:

Originally Posted by StarkReality (Post 13330794)
You are asking for spoofers if you protect members pages this way, don't do it !

I am no expert on multi server setups - but I agree this sounds a bit dodgy...

fris 11-04-2007 04:48 PM

follow the force jimmy

latinasojourn 11-04-2007 05:40 PM

Quote:

Originally Posted by StarkReality (Post 13330794)
You are asking for spoofers if you protect members pages this way, don't do it !

yes, i understand.

the purpose is to create a workaround for a small glitch in antihotlinking script.

NinjaSteve 11-04-2007 07:28 PM

How can you block just 1 state in the US?

thonglife 11-04-2007 07:38 PM

Quote:

Originally Posted by NinjaSteve (Post 13331321)
How can you block just 1 state in the US?

in .htaccess? I've never heard of such a thing. Out of curiousity.. Why?
I have heard of using iptables to drop an entire country though, through a script.


All times are GMT -7. The time now is 11:02 PM.

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