I want to know how to block traffic to my sub domains - .htaccess

My domain is example.co.uk and my sub domain is app.example.co.uk
I would like to know. How can I block all the traffic to my sub domain except from India & UK.
Whether it can be done by cloudflare firewall rules or workers?
If not. Then how can i block ?
help me out this.
Thanks in advance.

You can see the example here
https://developers.cloudflare.com/firewall/known-issues-and-faq#how-do-i-create-an-exception-to-exclude-certain-requests-from-being-blocked-or-challenged
In your case, the following rule may work

I suggest you review the geo blocking technology. it works based on the user's location but it can be circumvented with vpn.

Related

How to change a sub-domain name and redirect using the old name

Alright, here's the dilemma I have. First off, I am by far not a Windows Server person. Not a huge fan of it at all, but I have no choice but to use it where I am.
I have a domain example.ag.mydomain.com
I would like to change this to example1.ag.mydomain.com
However, I want to be able to set it so if someone goes to example.ag.mydomain.com/wordpress it will redirect them to example1.ag.mydomain.com/wordpress.
I do have access to the DNS but I really have no clue how to do this, would this be a wildcard DNS or would this need to be set up differently?
I appreciate your help!

Wildcard domains (not sub domains) pointing to dedicated IP - /home/user/public_html/landing/

I'm looking for a solution to park unlimited domains without having to first having to define them (named.conf).
I want to give clients my nameservers to point their domains at, and have them land on a certain directory on my server. For example /home/user/public_html/landing/index.php
The closest site I can think of, that does similar is sedoparking.com
Any help would be gratefully received.

Redirect while keeping URL in browser by DNS settings only - is it possible?

I had an argument with my friend about domain redirects. He is convinced that you can redirect one domain to another by using DNS records only, showing source URL in browser instead of target URL. I mean, without any access to webserver. I don't think this is the case but can't find a direct proof that it's impossible.
So I'm curious. Is there a way to do it?
Yes it's possible. It's sometimes called Stealth Forwarding and may or may not be offered by your domain name registrar.

When I type "www.gstbox.com" it doesn't work but it works fine without "www"

At first my website was hosted on 000webhost.com but then I had some problems with them so I switched for networksolutions.com(paid).
But after a while I realized that when I entered on www.gstbox.com it showed me that the page is not found but if I typed in gstbox.com it works just fine what could possibly be the problem??
Please help
there have been a lot of these questions answered here please use the search box in the top right corner of the page, most can be answered with a rewrite rule. here is the answer to your question. Www and non www sites
Or possibly there might be a firewall and its not allowing the www.gstbox.com to pass,or else maybe your web service is not configured to respond to the same page on www
The problem is that www.gstbox.com is a subdomain of gstbox.com which is simply not listed in gstbox.com's DNS server. You should have some kind of control panel for your domain (if you don't, contact an operator of your service provider) where you are able to change the DNS settings. You should add a www subdomain and configure it to point to the proper IP address (most likely the same as the one gstbox.com points to).
I hope it helps,
Regards

Subdomain or a different domain ? What should I use

I have my personal website at www.yassershaikh.com, now I am planning to setup a website for interview related questions and answers,
Now for this I have two options
Using sub domain www.interview.yassershaikh.com
using a completely different domain www.abcdxyz.com
Now I wanted to which of the above two methods is better.
Will using sub domain hurt my SEO result ? and google ranking ?
Also I was looking for sub domain as my current site is hosted by a very good service provider and at very resonable rate, so in that way I wont have to shell out again for another domain.
Please guide me on this.
Thanks in advance
Using a subdomain should not affect your google ranking. A sub domain is cheaper, provided you have a way to host the DNS records without paying somebody else anything extra. Keep in mind that you can also use interview.yassershaikh.com -- you don't need the leading www. As a matter of fact, you don't even need a subdomain; all you need is another hostname. Right now you have an 'A' record, a hostname, at www.yassershaikh.com. You can create another 'A' record at interview.yassershaikh.com, and use that. Google doesn't care whether your host is named www.yassershaikh.com, interview.yassershaikh.com, or bluecheese.yassershaikh.com -- you can have a bunch of them, all directly under the yassershaikh.com domain.

Resources