Please Help! I blocked my country IP, however I need to edit my site

Discussion in 'Site & Server Administration' started by mnights, Jun 29, 2009.

  1. #1
    I had to block my site from my country, since I don't want locals seeing my content, However I need to edit my site, to fix this problem, I use a proxy, (ghost surf). and this works fine as long as I don't need to upload images, this is where my problem occurs.

    What I want to achieve is a script or solution which will exclude my IP address so I dont have to hide via Proxy.
    in the .htaccess file

    I tried this script:
    RewriteCond %{REMOTE_ADDR} !^190\.80\.145\.154$
    RewriteCond <existing webmaster visitor detection>
    RewriteRule <existing webmaster redirect>

    but it didnt work and, even if it did work my ip changes so I would have to constantly edit htaccess, does anybody have a better idea.

    Thanks :)
     
    mnights, Jun 29, 2009 IP
  2. maestria

    maestria Well-Known Member

    Messages:
    705
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Why dont you use allow and deny in htaccess and allow only your ip and block all the other ip range?
     
    maestria, Jun 30, 2009 IP
  3. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #3
    You can use "Allow from 1.2.3.4" (without quote) in your htaccess to allow particular IP address. But if you have dynamic IP address then you will need to allow complete range of your dynamic IP address.
     
    kailash, Jun 30, 2009 IP
  4. Host Storm

    Host Storm Peon

    Messages:
    108
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Cpanel has a block feature that allows you to set IPs to block or accept.
     
    Host Storm, Jul 2, 2009 IP
  5. pitagora

    pitagora Peon

    Messages:
    247
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    don't block the entire site. Leave your admin panel open so you can login there and upload whatever you need to upload and change.
     
    pitagora, Jul 8, 2009 IP