detect posts and index requests