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)
-   -   .htaccess question (https://gfy.com/showthread.php?t=458180)

YDG 04-20-2005 03:41 PM

.htaccess question
 
with .htaccess
is it possible to stop access to your website from certain refering urls?

I know you can deny by ip, or url, but i dont think this stops denying by refering url

So basicaly a way to stop surfers using a certain site to get to yours

Thanks in advance.

JSA Matt 04-20-2005 03:44 PM

Are you trying to stop spoofers? You could do a referer check in PHP and redirect them somewhere else but I don't know about blocking them via apache or anything like that

sexdwarf 04-20-2005 03:45 PM

yes, in conjunction with mod_rewrite...

RewriteEngine on
RewriteCond %{HTTP_REFERER} (domainname\.com) [NC,OR]
RewriteRule .* - [F]


All times are GMT -7. The time now is 05:55 AM.

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