Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-05-23, 08:14 PM   #1
Snagglepuss
If something goes wrong at the plant, blame the guy who can't speak English
 
Snagglepuss's Avatar
 
Join Date: Apr 2005
Posts: 38
Anyone willing to help an idiot with a simple htaccess

I'm having a couple small problems that htaccess should remedy. Unfortunately I have no freaking clue as my old server did all of this for me.


Situation 1
I need have a folder that I need to keep everyone out of except for one domain and one url that I use to access it myself. (This is for a avs kind of thing) So I'd imagine I'd need something like

Allow
http://www.alowed_domain.com
http://www.mydomain.com/avsacesspage.html
deny all others and send to http://www.mydomain/avsfrontpage.html



Situation 2
I have this moocher on some special galleries. He has various domains and some of them are have the same words like Venus.com and Venus.net. So I need to be able to add multiple domains and let everyone else in. So I might need something like this.

Allow all
Deny and send to http://www.wherever/pissoff.html
*Venus*
http://www.moocher.com/
etc so I can add new moochers.


I know the syntax is crazy but I figured if I wrote it out it would give everyone a better ideal of what I need. Anyone have any ideals on how to make this real?
__________________
Life is good
Snagglepuss
ICQ# 67740529
Snagglepuss is offline   Reply With Quote
Old 2005-05-23, 08:17 PM   #2
Mr. Blue
Searching for Jimmy Hoffa
 
Mr. Blue's Avatar
 
Join Date: Jan 2005
Location: Long Island, NY
Posts: 771
http://www.htaccesstools.com/block-hitbots/

Pretty simple to do all your htaccess type stuff using this place.
Mr. Blue is offline   Reply With Quote
Old 2005-05-23, 08:32 PM   #3
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Mr. Blue's page is a good one.

I also have a page full of my notes and there is my notes on htaccess about 2/3 of the ways done on the page.
http://www.cleos-porn-links.com/adul...aster-help.php


This is how I have referral protected directories
AuthType Basic
RewriteEngine On

RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*cleoslinks.com:80/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*cleoslinks.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*cleoslinks.com*$ [NC]
RewriteRule /* http://www.cleos-porn-links.com/adult-links/ [R,L]
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-05-24, 02:28 PM   #4
Snagglepuss
If something goes wrong at the plant, blame the guy who can't speak English
 
Snagglepuss's Avatar
 
Join Date: Apr 2005
Posts: 38
Hey thanks guys for the tips. I think I can get where I want from here.
__________________
Life is good
Snagglepuss
ICQ# 67740529
Snagglepuss is offline   Reply With Quote
Old 2005-05-24, 07:06 PM   #5
wankmaster
Just because I don't care doesn't mean I don't understand!
 
wankmaster's Avatar
 
Join Date: May 2005
Posts: 96
wish I could speak "regular expression"
wankmaster is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:34 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc