1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Blocking scripts in sub-directories through main .htaccess

Discussion in 'Apache' started by adrianTNT, Aug 12, 2010.

  1. #1
    Anyone knows if/how I could block the scripts (php,asp) to run in sub-directories of the site?

    e.g
    /user_uploads/01/*
    /user_uploads/02/*,
    etc

    by using the main .htaccess in site root.. ?

    It looks like if I set some conditions to redirect all .php, .asp, etc, users are able to upload other .htaccess files in these subdirectories and overwrite the main code in /.htaccess.

    Any ideas?
     
    adrianTNT, Aug 12, 2010 IP