I bought a domain name from 1and1 but would like it to only be accessible for people connected to our company's internal network. Is it possible to continue letting 1and1 host the domain while also preventing access to the website unless connected to company network?
To Make public domain name only accessible from internal network, you can place a .htaccess at the root of your host with a 403 Error for All but your company network IP (xx.xx.xx.xx).
order deny,allow
deny from all
allow from xx.xx.xx.xx
To go further and make it cleaner, you should also redirect unwanted users to a public page with this line below the previous code:
ErrorDocument 403 http://example.com
Related
I'm trying to redirect multiple domain names to their corresponding landing pages on my website using name servers, but don't know where to start.
Example:
I have two domain names 1)ABC.com 2)123.com. I want to set the name servers of each domain to forward them to the landing page on my website, so ABC.com would redirect to MyWebsite.com/abc and 123.com would redirect to MyWebsite.com/123.
Any help as to where I could a general direction to make this happen?
DNS is solely responsible for the name 123.com to address 12.34.56.78 mapping. It has no concept of anything that happens beyond that. Via DNS you would need to point both names to the address of the web server.
Then on the web server, configure a site at abc.com and 123.com, with each site being redirected the appropriate place.
This way, the HTTP software will detect which domain name is requested and redirect it as required.
You basically need to follow the link shared in comments, but do that for each domain. - How do I redirect a domain to a specific "landing page"?
i have a video file that want to block from viewing from other sites (so users can watch it just from my website) but i want also to allow some ips that can access it from everywhere
So to allow just some ips i use
order deny,allow
deny from all
allow from 111.111.111.111
allow from 111.111.111.112
...
it works great but i want also to allow all users that play video in my website
www.example.com
so can i exclude my website from deny from all, so if user visit it from mysite those rules will not work for him
I want to block some IPs through htaccess to visit the site to prevent malicious attacks an example IP is : 172.30.1.193
I am using this rule to block the IP
order allow,deny
deny from 172.30.1.193
allow from all
but i am recieving error of forbidden 403
I applied an htaccess file to the /administrator directory of a joomla website that is supposed to whitelist only my local ip address and my public ip address .
However, it appears that a new user account was created within that joomla account a couple of months after I applied the white list.
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from 77.##.##.###
Can someone offer a theory on how this is possible?
Users can be created via front-end, even if you don't have a registration link or form there. Registration might be accessed by going to: index.php?option=com_users&view=registration
You can disable this option in Joomla back-end. To do so go to: System -> Global Configuration -> Users Manager and turn Allow User Registration to NO.
I have this in my .htaccess
<Limit GET POST>
Deny from all
Allow from xxx.x.xxx.x
Allow from xxx.xx.xxx.x
Allow from xxx.xx.xx.x
</limit>
So I am good with this setup now I am allowing certain ip to access my server but now I need add another but I cannot get their ip address so I need to allow via their url. How can I accomplish this case?
for example I want developer.paypal.com/(any) to allow to access the php scripts in my server
You can use:
Allow from bla.com
Assuming that bla.com is the domain name and that it is properly assigned to the IP that is making the requests to your site.
If the IP is not properly assigned to that domain name or is dynamic you can use a different approach such as user and password authentication, and others available.