![]() |
![]() |
![]() |
||||
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 |
Registered User
Join Date: Sep 2003
Location: Face down in a bar, with my left breast in an ashtray. Do you come here often?
Posts: 12
|
.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?
__________________
Omigawd, my glass is empty! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Registered User
Join Date: Sep 2003
Location: Face down in a bar, with my left breast in an ashtray. Do you come here often?
Posts: 12
|
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?
__________________
Omigawd, my glass is empty! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2001
Posts: 1,662
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Dec 2001
Location: Texas
Posts: 856
|
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 - |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Registered User
Join Date: Sep 2003
Location: Face down in a bar, with my left breast in an ashtray. Do you come here often?
Posts: 12
|
Are any special modules required to perform this function?
I.E. mod_rewrite ?
__________________
Omigawd, my glass is empty! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
|
Quote:
yes |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Nov 2002
Location: Hurricane Florida
Posts: 205
|
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. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |