Skip to main content

Denying access for Sub Domain only

Comments

3 comments

  • rpvw
    You may be able to achieve what you want using a mod rewrite rule (perhaps using HTTP_REFERER ?) I would suggest you test for the domain with no prefix, and also the domain with the www prefix OR use an IF NOT sub.domain.com ...... Hope this helps mod_rewrite - Apache HTTP Server Version 2.4
    0
  • Fred90
    You may be able to achieve what you want using a mod rewrite rule (perhaps using HTTP_REFERER ?) I would suggest you test for the domain with no prefix, and also the domain with the www prefix OR use an IF NOT sub.domain.com ...... Hope this helps mod_rewrite - Apache HTTP Server Version 2.4

    That is what I just finished adding. And tried it, all seems to be working. Just need to check the connecting server that has access. Thanks!
    0
  • cPanelMichael
    Hello, I'm glad to see you were able to find a suitable solution. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.