473,609 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help With Htaccess

1 New Member
Hello there, I'm from Peru, Im wondering if there is any chance to block all IP's from Peru except for my own ip (dynamic IP address). I have tried with the htaccess file with no luck.

My actual address is 201.230.240.105

My htaccess file:

<Limit GET HEAD POST>
order allow,deny
deny from 161.132.0.0/16
deny from 190.8.128.0/19
deny from 190.12.64.0/20
deny from 190.40.0.0/17
deny from 190.40.128.0/17
deny from 190.41.0.0/17
deny from 190.41.128.0/17
deny from 190.42.0.0/15
deny from 190.81.0.0/18
deny from 190.81.64.0/18
deny from 190.187.0.0/17
deny from 192.102.84.0/24
deny from 200.0.107.0/24
deny from 200.0.110.0/24
deny from 200.0.118.0/23
deny from 200.0.136.0/24
deny from 200.0.142.0/24
deny from 200.0.164.0/24
deny from 200.0.165.0/24
deny from 200.0.166.0/23
deny from 200.0.168.0/24
deny from 200.0.169.0/24
deny from 200.0.170.0/23
deny from 200.0.172.0/23
deny from 200.1.176.0/21
deny from 200.3.114.0/24
deny from 200.3.241.0/24
deny from 200.4.192.0/18
deny from 200.10.64.0/19
deny from 200.10.130.0/23
deny from 200.10.188.0/24
deny from 200.10.250.0/24
deny from 200.11.32.0/24
deny from 200.11.34.0/23
deny from 200.11.36.0/24
deny from 200.11.37.0/24
deny from 200.11.38.0/23
deny from 200.11.48.0/20
deny from 200.16.0.0/21
deny from 200.24.160.0/19
deny from 200.31.96.0/20
deny from 200.31.112.0/20
deny from 200.37.0.0/16
deny from 200.48.0.0/16
deny from 200.60.0.0/17
deny from 200.60.128.0/18
deny from 200.60.192.0/19
deny from 200.60.224.0/19
deny from 200.62.128.0/18
deny from 200.62.192.0/20
deny from 200.62.208.0/20
deny from 200.62.224.0/19
deny from 200.89.0.0/20
deny from 200.89.16.0/20
deny from 200.106.0.0/18
deny from 200.106.64.0/18
deny from 200.107.128.0/18
deny from 200.108.96.0/20
deny from 200.110.0.0/19
deny from 200.110.32.0/20
deny from 200.121.0.0/17
deny from 200.121.128.0/17
deny from 200.123.0.0/19
deny from 201.230.0.0/17
deny from 201.230.128.0/17
deny from 201.240.0.0/17
deny from 201.240.128.0/17
deny from 206.223.130.0/24
deny from 209.45.0.0/17
deny from 216.244.128.0/18
allow from all
allow from 201.230.240.105
</LIMIT>


Thanks.
sanedt
Sep 12 '07 #1
0 1656

Sign in to post your reply or Sign up for a free account.

Similar topics

8
50615
by: Joshua Beall | last post by:
Hi All, How do I disable magic quotes via .htaccess? I put the following file in my webroot, but it does not disable magic_quotes_gpc (according to phpinfo(), both the local and master value are still "on") <IfModule mod_php4.c> php_value upload_max_filesize 8M
4
2984
by: Ivo | last post by:
Greetings newsgroup, I am moving some php scripts to a new host. While getting to know the server, I ran into a strange problem. If I add a .htaccess file, or more specifically: a .htaccess with content, to a folder, requesting (html and php) files from that folder results in internal server error messages. If I upload an empty .htaccess file, all is fine. Then phpinfo() tells me I am using Apache/1.3.27.
2
1599
by: wandaring | last post by:
here's my problem If a visitor comes to visit my site and puts in his / her browser www . mysite.com/Ceciliasfirstpage.html (excluding the space) I want Ceciliasfirstpage.html to be generated on the fly from a common php page generator. What functions would i need? Is there a function that would return the string www .
7
7511
by: John | last post by:
Hello. I want to get this blasted .htaccess file sorted out, so I can have sessions without register_globals being on. I have looked everywhere for info on this and I mean everywhere including the php.net manual. In the manual it said to include something like the following:
2
1766
by: Jane Withnolastname | last post by:
I have seen many posts here eschewing the use of META tags, advising instead to use http headers. I have no idea what they are or how to get to them, so I would appreciate some help. My specific problem is this: my server supports SSI, but does not display the index.shtml file, instead just displaying a directory listing. I have tried to have them change this, but tech support is an oxymoron (with emphasis on moron). In the meantime, I...
0
1996
by: Jack Hambabo | last post by:
Hi, I'm searching for a php script that can find out whether the current user (I know _SERVER will give me the name for non-cgi php) has the right to view a specific file. My dream is that I just need a short php script that just asks the webserver what the rights are. That seems a reasonable wish to me. If this is however not possible than I'd like a script that can
4
2478
by: Hermann.Richter | last post by:
I want to rewrite URLs like http://domain/dir/file.php?var1=val1&var2=val2#anchor to http://domain/dir/file?var1=val1&var2=val2#anchor In other words, I want to strip out the php extension I tried putting in the .htaccess file the following:
1
4887
by: nickyeng | last post by:
I have checked this info from apache website, and i confused with it. Procteing System files it said: To run a really tight ship, you'll want to stop users from setting up .htaccess files which can override security features you've configured. Here's one way to do it. In the server configuration file, put
1
2474
by: Sean128 | last post by:
Hi, I hope someone can help me - this seems like it should be a really simple problem but I've been having trouble trying to solve it all week. I have hosted my website on a Linux server in 1 and 1 and I can not modefiy the Apache server. They told me I need to create the .htaccess file. The code that I put in my .htaccess file is: php_value include_path "/bioconstore/lib:/plate-latest"
0
1661
by: veliscorin | last post by:
hi guys, i currently have a .htaccess that rewrites a certain url for example: http://localhost:8080/test/my_function to http://localhost:8080/test/index.php/my_function i have successfully done it on my localhost, however when i place the exact same application onto a live domain, somehow it does not work i do not have control over that domain's server configuration so i do not really know how to approach the web hoster for help
0
8139
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8091
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8579
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6064
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5524
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4032
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4098
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1686
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.