Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   htaccess protecting a directory help please (http://www.greenguysboard.com/board/showthread.php?t=7426)

hermit 2004-05-10 09:54 AM

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

Cleo 2004-05-10 12:05 PM

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]

hermit 2004-05-10 12:14 PM

xxx
 
excellent, thank you very much cleo.

hermit 2004-05-13 09:56 AM

it works :)
 
just finished my first gallery with pics on html pages and the htaccess works perfectly. thanks again :)


All times are GMT -4. The time now is 08:30 AM.

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