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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-25-2003, 09:44 AM   #1
Shanda Leer
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!
Shanda Leer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2003, 09:49 AM   #2
JFPdude
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
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2003, 10:08 AM   #3
Shanda Leer
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!
Shanda Leer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2003, 10:21 AM   #4
HowlingWulf
Confirmed User
 
HowlingWulf's Avatar
 
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.
HowlingWulf is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2003, 10:34 AM   #5
Carlito
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

-
Carlito is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2003, 10:45 AM   #6
Shanda Leer
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!
Shanda Leer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2003, 10:47 AM   #7
JFPdude
Confirmed User
 
Join Date: Jan 2002
Location: Mountains of Western North Carolina.
Posts: 4,027
Quote:
Originally posted by Shanda Leer
Are any special modules required to perform this function?
I.E. mod_rewrite ?

yes
JFPdude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-25-2003, 02:21 PM   #8
Burnie
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.


Burnie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.