You can block HTTP GET and POST requests with .htaccess file by using `
```
Order Deny,Allow
Deny from all
```
This code will block GET and POST requests from everyone. If you wish to allow from certain IP’s, you can use `Allow from` directive.
For example:
```
Order Deny,Allow
Deny from all
Allow from 192.168.1.1
```
In this case, requests from IP 192.168.1.1 will be allowed. Replace this IP address with the one you want to allow requests from.
Limitations:
The `
For example:
```
Require ip 192.168.1.0/16
```
This will block all ip addresses from accessing your site via GET and POST method except the ones in the 192.168.1.0/16 subnet. Adjust it to meet your needs.