Wiki

Clone wiki

proxiblock / BlockingUrls

Blocking URLS

You just need to define regex (pcre) rule in block.urls file. The configuration file looks like:

########################################
# You need to specify pcre regex to match the whole request->uri, then you need to specify an action, fill next line with params, then empty line.
# So the example looks like:
http://(www.|)google.*
empty
none

^.*microsoft\..*
empty
500

# But.. do you really want to block google ?
# !!! DO NOT REMOVE OR CHANGE THIS LINES !!!
########################################
^.*microsoft\..*
error
403

^.*facebook\..*
empty
none

^.*fbcdn\..*
empty
none

^.*\.swf
error
404

^.*\.js
empty
none

Updated