Config .htaccess for Referrer and Agent of ET only?
Moderators: Forum moderators, developers
Config .htaccess for Referrer and Agent of ET only?
Hi
has someone a fully functional config for apache2 .htaccess which blocks access to the files instead for:
ID_DOWNLOAD/2.0 libcurl/7.12.2
and the server referrer?
greetz mike
has someone a fully functional config for apache2 .htaccess which blocks access to the files instead for:
ID_DOWNLOAD/2.0 libcurl/7.12.2
and the server referrer?
greetz mike
a bit late but here----works
This is not an htaccess file but directly in the .conf
<Directory "/xxxxxxxxxxx">
SetEnvIf User-Agent ID_DOWNLOAD/2.0 libcurl/7.12.2
IndexOptions FancyIndexing IconHeight=22 IconWidth=22 IconsAreLinks HTMLTable
AddDescription "ET maps" pk3
AddDescription "Zip File" zip
DefaultType application/zip
AddIconByEncoding (pk3,/icons/pk3a.gif) x-pk3
order Deny,Allow
Deny from all
AllowOverride None
Allow from env=libcurl/7.12.2
</Directory>
This is not an htaccess file but directly in the .conf
<Directory "/xxxxxxxxxxx">
SetEnvIf User-Agent ID_DOWNLOAD/2.0 libcurl/7.12.2
IndexOptions FancyIndexing IconHeight=22 IconWidth=22 IconsAreLinks HTMLTable
AddDescription "ET maps" pk3
AddDescription "Zip File" zip
DefaultType application/zip
AddIconByEncoding (pk3,/icons/pk3a.gif) x-pk3
order Deny,Allow
Deny from all
AllowOverride None
Allow from env=libcurl/7.12.2
</Directory>
Code: Select all
SetEnvIf User-Agent ID_DOWNLOAD/2.0 libcurl/7.12.2
order Deny,Allow
Deny from all
Allow from env=libcurl/7.12.2
This by itself wouldnt prevent leaching of bandwidth from other servers,only direct browser access.
The ET 2.60 referer looks like this:
Only with your ET server IP and port, of course
Code: Select all
et://207.111.203.70:27960/
send lawyers, guns and money
Code: Select all
SetEnvIf Referer "ET://x.x.x.x:27960" local_referal
order Deny,Allow
Deny from all
Allow from env=local_referal
i 'think' you can call local_referal whatever you want. Really isn't any need to do both referer and libcurl.
I think if you use both,the libcurl will override the referer,but Im not really sure.Or maybe you can tell to satisfy all variables.
Code: Select all
SetEnvIf User-Agent ID_DOWNLOAD/2.0 libcurl/7.12.2
SetEnvIf Referer "ET://x.x.x.x:27960" local_referal
order Deny,Allow
Deny from all
Allow from env=libcurl/7.12.2
Allow from env=local_referal
Satisfy all