How to block an IP, if getting many http/apache/mysql requests in a second [closed] - mysql

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
if some one tried force burst attack on my website. how can i block their IP address.
i mean, i want to block an IP if, getting many http/Apache/SQL requests per second. how can i prevent those force burst attacks
Linux Server
thank in advance

In your .htaccess you can add something like:
order allow,deny
deny from <ip address>
allow from all
Or depending upon your operating system you can add a rule to your iptables.
For example, here is how you would do it in ubuntu.

Related

How do i make my website inaccesible from public? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
i want to make a website that will not be accessed by anyone, there will be a login page in which you can't make an account, only for admins.
for example, i have a homepage which will be on example.com/homepage, if normal people accessed this they wouldn't be able to see it and instead get redirected to example.com/login unless they login with the right account they won't be able to go to the other sections of the websites.
This can be done by configuring your web server. E.g. Apache has multiple choices, the simplest one being with just two files https://httpd.apache.org/docs/2.4/howto/auth.html#gettingitworking
For more complicated solutions you'll need a server side programming language, like PHP.

No Data Received [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Out of the blue, around 40% of my website's community can no longer visit, saying they're getting "No Data Received" errors. We've taken our firewall offline, tried going through systems such as Cloudflare and checked our .htaccess to no avail.
I've asked affected users to traceroute but the weird thing is it looks like it's being stopped at ISP level.
Can anyone suggest other things that may be causing this error?

Is it standard to get FTP access when doing freelance web design/dev? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Is it standard to get FTP access when doing freelance web design/dev?
I'm redesigning one page for a company, does it make sense for me to ask them for FTP access?
Thanks
Nothing is standard it depends on the requirements of the business. They might just want for you to hand over the code in which case it wouldn't be needed. They might want you to look after deployment in which case you would likely need some sort of access to the production machine. Also don't ask for FTP it is not secure and looks a bit amateurish. Ask instead for SFTP access more or less the same but it runs over SSH so you get security thrown in for free.

Could IPv4 exhaustion not be pushed back by allowing some of 127.*.*.* (not .0.0.1) to be allocated? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
It seems to be that most firmware should, by now at least, look for 127.0.0.1 for the loopback and not, e.g. 127.*.*.*
If they change the definition of routable IP addresses, that will create more compatibility problems than it solves allocation problems. That would add less than 1% to the pool of IP addresses, and would be consumed very quickly. In this case, I think the cure is worse than the disease.

blogger.com subdomains [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
When one registers for a blog in blogger.com, a sub-domain gets created i.e. your_blog_name.blogger.com
My question is - Is there no limit to the number of sub-domains you can create with a single domain name?
I am just curious as to how blogger (or any other blog hosting platform) does this?
This can be done by a catch-all A record rule in your DNS server configuration. For example, in bind, you would use something like this:
*.example.com. IN A 127.0.0.1
This would make anything.example.com resolve to 127.0.0.1. Then, using an appopriate VHost on your http server, you can redirect all requests to a particular server-side script (for example PHP), which can then detect the hostname that was used, and respond with the content required.
There are restrictions on the characters that can be used (actually, two separate sets of restrictions due to the way IDNs work). There are practical limitations in terms of length. Beyond that no. Indeed, it's not much different for the entity in charge of .blogger.com to create a subdomain of that than for the entity in charge of .com to do so, and there were 80,000,000 of those at the start of last year .