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 2004-05-10, 09:54 AM   #1
hermit
Lord help me, I'm just not that bright
 
Join Date: Oct 2003
Location: vegas
Posts: 106
Send a message via ICQ to hermit
htaccess protecting a directory help please

hi. i need a htaccess file that will make it so that in order to access any html pages in http://www.mydomain.com/free-galleries/imagepages/ they have to come from a page on my site. i dont want a serfer to be able to browse them by typing in image002.html, image003.html etc... i have a php script thats randomly choosing 10 per day out of in some cases 350 and i dont want a smart serfer to be able to see them all. make sense? thanks. rl
hermit is offline   Reply With Quote
Old 2004-05-10, 12:05 PM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Here you go, just replace my domain info with your domain info.



AuthType Basic
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://www.cleos-porn-links.com/adult-links/*$ [NC]
RewriteRule /* http://www.cleos-porn-links.com/ [R,L]
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2004-05-10, 12:14 PM   #3
hermit
Lord help me, I'm just not that bright
 
Join Date: Oct 2003
Location: vegas
Posts: 106
Send a message via ICQ to hermit
xxx

excellent, thank you very much cleo.
hermit is offline   Reply With Quote
Old 2004-05-13, 09:56 AM   #4
hermit
Lord help me, I'm just not that bright
 
Join Date: Oct 2003
Location: vegas
Posts: 106
Send a message via ICQ to hermit
it works :)

just finished my first gallery with pics on html pages and the htaccess works perfectly. thanks again
hermit 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:31 AM.


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