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 -> How-to's & Documentation & Tips View previous topic :: View next topic
Reply to topic   Topic: [Tip] Mod_rewrite :: block extern linking
Author
James Blond
Moderator


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

PostPosted: Thu 27 Jul '06 15:40    Post subject: [Tip] Mod_rewrite :: block extern linking Reply with quote

Code:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?deine-domain\.de(/.*)?$ [NC]
RewriteRule \.(gif|jpe?g|png|php|GIF|JPE?G|PNG|PHP)$ - [F]


maybe helpfull
Back to top
Jorge



Joined: 12 Mar 2006
Posts: 376
Location: Belgium

PostPosted: Thu 27 Jul '06 20:23    Post subject: Reply with quote

for those who don't speak german verywell:
replace deine-domain\.de with your-domain\.tld
Back to top


Reply to topic   Topic: [Tip] Mod_rewrite :: block extern linking View previous topic :: View next topic
Post new topic   Forum Index -> How-to's & Documentation & Tips