logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Convert code Apache 2.2 to 2.4?
Author
uzay



Joined: 15 Oct 2018
Posts: 1
Location: Germany, Berlin

PostPosted: Mon 15 Oct '18 20:53    Post subject: Convert code Apache 2.2 to 2.4? Reply with quote

Hello!
Can anyone convert this code from 2.2 to 2.4?
Thank you in advance!
==============================
order deny,allow

SetEnvIfNoCase Referer "^$" bad_user
SetEnvIfNoCase User-Agent .*msn.* search_robot good_user
SetEnvIfNoCase User-Agent .*xml-sitemaps.* search_robot good_user

Deny from env=bad_user
Allow from env=good_user
===================================
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7294
Location: Germany, Next to Hamburg

PostPosted: Tue 16 Oct '18 23:04    Post subject: Reply with quote

Example

Code:
SetEnvIf Referer "^http://www\.example\.com/" local_referal
# Allow browsers that do not send Referer info
SetEnvIf Referer "^$" local_referal
<Directory "/web/images">
    Require env local_referal
</Directory>
Code:


Sure you can also have

[code]Require not bad_user[/code]

if you still have a question please ask again
Back to top


Reply to topic   Topic: Convert code Apache 2.2 to 2.4? View previous topic :: View next topic
Post new topic   Forum Index -> Apache