On Tue, 13 Jan 2009 18:35:56 +0000, "steve grout" <[email protected]> said: > hi guys.. > > i dont want to hijack the web hosting solutions mail so thought > i would ask again for the solution which was provided in a > previous email. > > using .htaccess i would like to restrict access to the fast redirect > to all apart from certain referers.. I;m not good at all with htaccess > but being as i deleted the email regarding this before i dig a little > digging and came up with this.. could anyone help please.. > > SetEnvIfNoCase Referer "^http://<ip address here>" steam_ref=1 > SetEnvIfNoCase Referer "^http://<ip address here>" steam_ref=1 > > # block all referres that dont' have steam_ref set > <FilesMatch "(.*)"> > Order Deny,Allow > Deny from all > Allow from env=spam_ref > </FilesMatch> > > Thanks in advance
You're on the right track, but your example won't work. Assuming you are dealing with a Source (HL2) server, check out the following message posted to the list that addresses this problem: http://tinyurl.com/8emhbw If you are dealing with a Goldsource (HL1) server, no referrer is sent and the solution is not so simple. One method proposed is here: https://forums.alliedmods.net/showthread.php?p=525434 Hope that helps! -- Andy _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds

