FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2018
    Location
    Canada
    Posts
    23
    Linux (Fedora) Firefox 60.0

    How Can I Block Access to Three URL

    Suppose I need to block all access to these 3 vulnerable URLs:


    "/admin/scripts/vuln.php", "/admin/scripts/unsafe.php" and "/admin/lib/blocked.php"


    What Regex (regular expression) would I use to block it?

  2. #2
    Join Date
    Dec 2012
    Location
    santa barbara, CA
    Posts
    876
    Linux (Fedora) Firefox 60.0

    Re: How Can I Block Access to Three URL

    are you using apache (standard httpd) ? , or nginx ? or lighthttpd ? or something else ?

    if it is apache, modify /etc/httpd/conf/httpd.conf
    and add the following:

    <Directory /your_document_root_here/admin/lib>
    AllowOverride None
    Require all denied
    </Directory>
    <Directory /your_document_root_here/admin/scripts>
    AllowOverride None
    Require all denied
    </Directory>

    maybe that would help ?
    "monsters John ... monsters from the ID..."
    "ma vule teva maar gul nol naya"

  3. #3
    Join Date
    May 2018
    Location
    Canada
    Posts
    23
    Linux (Fedora) Firefox 60.0

    Re: How Can I Block Access to Three URL

    How about this expression :

    (?i)(\/admin\/scripts\/vuln.php|\/admin\/scripts\/unsafe.php|\/admin\/lib\/blocked.php) ?

    Will it work ?

Similar Threads

  1. How To Block All Access To Vulnerable URLs
    By LEON71 in forum Security and Privacy
    Replies: 1
    Last Post: Yesterday, 10:38 PM
  2. Block IP to access Hulu, etc.
    By tdcrooks in forum Using Fedora
    Replies: 3
    Last Post: 8th September 2009, 09:35 PM
  3. block USB access, and access to certain programs
    By iinfi in forum Security and Privacy
    Replies: 2
    Last Post: 27th January 2009, 04:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •