osCmax v2.5 User Manual
Results 1 to 5 of 5

Change site by IP location

This is a discussion on Change site by IP location within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; I wonder if anyone may have a way to set an osCMax site to give a different or screen when ...

      
  1. #1
    Member
    Join Date
    Jul 2006
    Posts
    67
    Rep Power
    0


    Default Change site by IP location

    I wonder if anyone may have a way to set an osCMax site to give a different or screen when someone from foreign IP loads the site? I want to prevent my competition hiring cheap overseas labor to copy my hard work.

    Anyone?

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Change site by IP location

    You can block a range of IP addresses. But that will not solve your problem. What is the chance what your seeing is search spiders?

    My suggestions is to make your hard work - unusable for anyone else!

    -Watermark all your graphics.
    -Make your descriptions your own. (reference or put your name/trademark in your text everywhere possible)
    -Customize your site.

    This is just a start!

    However the ONLY way to stop people from coping your work is to install your website on a CD - unplug your PC - drill holes in the CD (while it is still in the the drive), bury the whole think in your back yard and pore a cement pad on top of it.

    Good luck!

  3. #3
    Member
    Join Date
    Jul 2006
    Posts
    67
    Rep Power
    0


    Default Re: Change site by IP location

    You are right about protecting the site, however.... We have a custom module to calculate prices and other elements, which might be desireable.

    Yes, these are not spiders- a referral link from rentacoder.com and a guru.com.

    How can I block a range of ip?

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Change site by IP location

    If you are running Apache, then go into the catalog directory, then edit or add in a file called .htaccess, add the following:

    Order Allow,Deny
    Allow from all
    Deny from 125.1.2.3

    If that doesn't work, you can also drop this block into your httpd.conf file, if you're comfortable editing that file.

    Once it's installed, you'll want to change the 125.1.2.3 to the IP address of the offending party (look in your log files for that information).

    To ban a range it is easies to chop one or two digits off --- ie put : 125.1.2

    To be a bit more mean...

    You can expand this to block multiple IPs or domain names and create a special error page. Create and upload a special page, in this example banned.htm, then use this in .htaccess:

    ErrorDocument 403 /banned.htm
    order deny,allow
    deny from 125.1.2.3
    <files banned.htm>
    allow from all
    </files>

    Hope this helps you solve the problem.

    Good luck!

  5. #5
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Change site by IP location

    PS - you could put the domain name instead - if you know it.... (then IP does not mater...)

Similar Threads

  1. tep_draw_input_field -Location? customize? where?
    By Luggruff in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 04-05-2007, 04:17 AM
  2. wget location?
    By allwebnow in forum osCmax v2 Installation issues
    Replies: 0
    Last Post: 11-07-2006, 07:56 AM
  3. Location gone screwy
    By learoypc in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 09-06-2006, 08:57 PM
  4. Need the location of paths
    By deviantla in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 01-29-2006, 10:43 AM
  5. change location of some files in catalog directory
    By yellowriver in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 10-22-2004, 04:33 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •