1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache 2.2 allow,deny > Apache 2.4

Discussion in 'Apache' started by richardwbb, Nov 17, 2018.

  1. #1
    Since my hoster upgraded Apache 2.2 to 2.4 I'm getting internal server error for
    SEMrush
    
    order allow,deny
       deny from domain.tld
       deny from 1.2.3.4
    allow from all
    
    Code (markup):
    I searched the internet and tried about twenty sites with .htaccess code that should work, but I'm still getting 500's.

    Could someone give me some proper code for Apache 2.4 for denying a domain, a ip address and allowing everything else?
     
    richardwbb, Nov 17, 2018 IP
    SEMrush
  2. hostechsupport

    hostechsupport Well-Known Member

    Messages:
    411
    Likes Received:
    23
    Best Answers:
    7
    Trophy Points:
    138
    #2
    hello richard,
    If you have already tried .htaccess codes still have issues then confirm with your hosting provider if current apache set up supports htaccess.
     
    hostechsupport, Nov 20, 2018 IP