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

Shanda Leer 09-25-2003 09:44 AM

.htaccess dilemma
 
I wish to have a third level domain on a seperate server from the root only accessible from another third level domain of the afore mentioned domain. In other words I have vodka.domain.com on one server and I have scotch.domain.com on another server. I only want the surfers to be able to access scotch.domain.com when he clicks a link on vodka.domain.com. Can anyone help a poor girl out?

JFPdude 09-25-2003 09:49 AM

AuthName AllowLocalAccess
AuthType Basic
#Limit GET POST#
order deny,allow
deny from all
allow from x.x.x.x
#/Limit#


Replace #'s with >'s or <'s respectively

Shanda Leer 09-25-2003 10:08 AM

That doesn't seem to cure the problem. Perhaps my httpd.conf file is not configured properly. Would that come in to play in this situation?

HowlingWulf 09-25-2003 10:21 AM

I think you need something like this on the scotch domain:

RewriteCond %{HTTP_REFERER} !^http://vodka.domain.com.*$ [NC]
RewriteRule .*\.htm $ http://vodka.domain.com/403.htm [R,L]


so that only if the referring url is vodka.domain.com will it load. Otherwise you get the 403 page redirect.

Carlito 09-25-2003 10:34 AM

Here is mine:

ErrorDocument 404 http://www.all.com
ErrorDocument 403 http://www.all.com
ErrorDocument 500 http://www.all.com


SetEnvIf Referer .xxxsex\.com refer
SetEnvIf Referer .all\.com refer1
SetEnvIf Referer .xamocontent\.com refer2

Deny from all
Allow from env=refer
Allow from env=refer1
Allow from env=refer2



I use this to use a global members area for several sites, works perfectly.

You *may* need to contact you host about a special string to go at the top - without this partcilar string, mine doesn`t work- but it won`t necessarily be the string for you-

Options +FollowSymlinks

-

Shanda Leer 09-25-2003 10:45 AM

Are any special modules required to perform this function?
I.E. mod_rewrite ?

JFPdude 09-25-2003 10:47 AM

Quote:

Originally posted by Shanda Leer
Are any special modules required to perform this function?
I.E. mod_rewrite ?


yes

Burnie 09-25-2003 02:21 PM

This should work...

AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://vodka.domain.com/ [NC]
RewriteRule /* http://scotch.domain.com/badlink.html [R,L]

Put in notepad and save as .htaccess, then upload to the root directory of your pictures. Hope this helps.


:2 cents:


All times are GMT -7. The time now is 12:39 AM.

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