![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
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.
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
vip member
Join Date: Jan 2003
Posts: 17,798
|
google is the best way to get an answer to your question
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
![]()
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
vip member
Join Date: Jan 2003
Posts: 17,798
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
![]()
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Affiliate
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,433
|
google it nigga!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Aug 2002
Posts: 5,235
|
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, |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Nov 2001
Location: Poland
Posts: 219
|
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.) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
ICQ: 175171926
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
|
Quote:
__________________
HEY!! Unbeatable hosting! Customer service is top notch! --> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |