GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   need some htaccess help (https://gfy.com/showthread.php?t=183212)

lil2rich4u2 10-06-2003 06:20 PM

need some htaccess help
 
i have a page that i would like to protect sortof.

id like only surfers comming from a specific referrer to be allowed access.

anyone know how to do this?

:/

ok thanks.

detoxed 10-06-2003 06:21 PM

google is the best way to get an answer to your question

lil2rich4u2 10-06-2003 06:25 PM

Quote:

Originally posted by detoxed
google is the best way to get an answer to your question
postcount++

:thumbsup

detoxed 10-06-2003 06:26 PM

Quote:

Originally posted by lil2rich4u2


postcount++

:thumbsup

google referrals--

lil2rich4u2 10-06-2003 06:32 PM

Quote:

Originally posted by detoxed


google referrals--

:winkwink:

Oracle Porn 10-06-2003 06:33 PM

google it nigga!

sumphatpimp 10-06-2003 08:04 PM

try this



RewriteEngine On
RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [NC]
RewriteCond %{HTTP_REFERER} !.*avs1.com.* [NC]
RewriteCond %{HTTP_REFERER} !.*avs2.com.* [NC]
RewriteCond %{HTTP_REFERER} !.*avs3.com.* [NC]
RewriteRule /* http://popup-hell.com/ [R,L]

RewriteEngine on
RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [NC]
RewriteCond %{HTTP_REFERER} !.*google.com.* [NC]
RewriteCond %{HTTP_REFERER} !.*picpost.com.* [NC]
RewriteCond %{HTTP_REFERER} !.*advert.com.* [NC]
RewriteRule .*\.[gif|jpg|jpeg|bmp] - [NC,F]
ErrorDocument 401 http://anydomain.com/anypage.html
ErrorDocument 403 http://anydomain.com/anypage.html
ErrorDocument 404 http://anydomain.com/anypage.html
ErrorDocument 500 http://anydomain.com/anypage.html


one of these should work, depends on what you what to do,

Anothers 10-06-2003 08:33 PM

try this

RewriteEngine on
RewriteCond %{REQUEST_URI} page_you_want_to_protect.htm [NC]
RewriteCond %{HTTP_REFERER} !.*domain_of_lil2rich4u2_choice.com.* [NC]
RewriteRule .* - [F]


Edit: this "page_you_want_to_protect.htm" you should tweak a little (subdirectory like /my_super_dir/page... etc.)

lil2rich4u2 10-06-2003 09:09 PM

Quote:

Originally posted by Anothers
try this

RewriteEngine on
RewriteCond %{REQUEST_URI} page_you_want_to_protect.htm [NC]
RewriteCond %{HTTP_REFERER} !.*domain_of_lil2rich4u2_choice.com.* [NC]
RewriteRule .* - [F]


Edit: this "page_you_want_to_protect.htm" you should tweak a little (subdirectory like /my_super_dir/page... etc.)

this looks like it does what i need, thanks i will try it


All times are GMT -7. The time now is 07:12 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123