<div dir="ltr">I was able to block the links coming from a specific pedophile domain (I redirect them to <a href="http://fbi.gov">fbi.gov</a>) but there are other instances where I want to examine the google/bing/etc query strings to look for specific search terms that could direct them to the correct resources or warn the channel ops that the person is probably up to no good.<div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 9, 2015 at 12:44 AM, Ed <span dir="ltr"><<a href="mailto:plug@0x1b.com" target="_blank">plug@0x1b.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Daniel,<br>
<br>
Do the blocking in the web server, not PHP. You want to push this kind<br>
of stuff as upstream in your system as you can get it - if you can<br>
block them at your firewall, even better.<br>
Look at the Access Control section, if you are using httpd 2.4:<br>
<a href="https://httpd.apache.org/docs/2.4/howto/access.html" target="_blank">https://httpd.apache.org/docs/2.4/howto/access.html</a><br>
<br>
the section - Access control by arbitrary variables - looks to have<br>
what you want with HTTP_REFERER - like so:<br>
<br>
<If "%{HTTP_REFERER} == 'Badland.org'"><br>
Require All Denied<br>
</If><br>
<br>
that's just some quick cut & paste, but a good example of what httpd<br>
2.4 might look like - ymmv</blockquote></div><div><br></div>-- <br><div class="gmail_signature">| ---------------------------------------------------------------<br>| Daniel P. Stasinski<br>| daniel@GenericInbox.com<br></div>
</div></div></div>