Blocking IPs without .htaccess

Discussion in 'Scripts' started by cx14c, Jan 26, 2011.

  1. #1
    Hello,

    I own two websites. The operation is small but as I work with images, I have several pages
    In the very beginning (8 years ago), my host service used an Apache server, so I just set a .htaccess file with the IPs I wanted to block and my problem was solved
    However, the host changed the server (a non Apache server) so, the .htaccess file doesn't upload

    Of course, I have several scripts (javascript) placed in my pages. The problem is that these scripts must be placed one in each page and in all the pages --> as my contents are dynamic and I have different access pages, the script updates and uploads take a lot of time :rolleyes:

    My question is: is there any script for the website (not for the pages) that can be used with a non Apache server?

    TIA

    Mar
     
    cx14c, Jan 26, 2011 IP
  2. FriendSwapMeet.com

    FriendSwapMeet.com Peon

    Messages:
    67
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I made a database in mysql and would check if that ip appeared in the database... if it did it would die
     
    FriendSwapMeet.com, Jan 26, 2011 IP