![]() |
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. |
google is the best way to get an answer to your question
|
Quote:
:thumbsup |
Quote:
|
Quote:
|
google it nigga!
|
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, |
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.) |
Quote:
|
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