How to block specific url on ispconfig3?

Discussion in 'Installation/Configuration' started by Tyrant, Nov 2, 2019.

  1. Tyrant

    Tyrant New Member

    I have been trying to search on google but i couldnt find anything that can help so i thought i should ask here.

    Is there a way to block a specific url from anyone to access?

    Example url.

    If there is a way then pls help me out. Thanks.
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    If you remove that example.rss files, then nobody can access it. If removing that files is not possible, I guess it is possible with some twiddling with .htaccess or web server setup to prevent web server from showing that URL.
  3. Tyrant

    Tyrant New Member

    Removing is not possible. Can u please guide how can i do that .htaccess thing?
  4. Steini86

    Steini86 Active Member

    Solution depends on version of webserver. Assuming you are using apache, you can use htaccess files (or directly in webserver config). Different solution for nginx.

    For apache version <2.2 and >2.4 see

    ## Apache 2.2
    <Files example.rss>
      order allow,deny
      deny from
    ## Apache 2.4
    <Files example.rss>
    Require all granted
    Require not ip
    If you want to block it for everyone, replace IP with "all"
    ##Apache 2.2
    # Block all files starting with ".ht"
    <FilesMatch "^\.ht">
      Order allow,deny
      Deny from all
      satisfy all
    ## Apache 2.4
    # Block all files starting with ".ht"
    <Files ".ht*">
      Require all denied
  5. Tyrant

    Tyrant New Member

    Thank you ill try it out. Hope it works :)

Share This Page