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 Mark Forums Read
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 11-19-2002, 07:50 PM   #1
xxweekxx
Confirmed User
 
Join Date: Oct 2002
Posts: 6,780
.htaccess help

well guys i have something like this

RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*sexkey.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*myurl.com [NC]


RewriteRule /* http://badrequest [R,L]

well i had that to protect my members area of my avs.. well right now all my avs folders are similar..
gallery1.html gallery2.htm main.html

well main.html has the link to the galleries.. well i dont want to keep making a new .htaccess for every folder so how do i make it protect only gallery, gallery2, and main.html files, in a folder containing other sites i dont want to protect

Last edited by xxweekxx; 11-19-2002 at 07:51 PM..
xxweekxx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2002, 09:56 PM   #2
Burnie
Confirmed User
 
Join Date: Nov 2002
Location: Hurricane Florida
Posts: 205
You Don't...

But your problem is easy, Put all the files in one folder that you want to protect, and the ones that are free access in another folder, then just put the .htaccess in the protected folder, it will protect it and all sub folders but not affect the other folders outside of it. ie

protected
/home/user/html/web/protected/ (put .htaccess here)

Not protected
/home/user/html/web/free_files/

This is what I use for code and it works very well:
RewriteEngine On
RewriteCond %{HTTP_REFERER} ^$ [OR]
RewriteCond %{HTTP_REFERER} !^http://www.gofuckyourself.com/ [NC]
RewriteCond %{HTTP_REFERER} !^http://gofuckyourself.com/ [NC]
RewriteRule /* http://www.gofuckyourself.com/fuckoff.html [R,L]

Hope this helps.

Regards
Burnie
Burnie is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-19-2002, 10:17 PM   #3
spanky
Confirmed User
 
Industry Role:
Join Date: Apr 2002
Posts: 231
RewriteCond %{REQUEST_URI} /(main|gallery1|gallery2).html$ [NC]
spanky 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
Thread Tools



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.