Drupal 7: Restrict certain pages to certain IP addresses without login?

I have been asked to make about 5 pages "internal only" by making them available only to private IP addresses (e.g., 10.x.x.x, 172.16.x.x, etc.).

They want anyone internally to be able to get to the pages, so logins can't be part of the equation.

There isn't anything particularly sensitive about the pages, so this doesn't need to be a super-secret solution.

I wouldn't mind doing this via PHP; I would just need to know the best place to put the code.

How to change/update a textbox's value on ajax based dropdown selection

I have a dropdown with 3 records fetched from Database based on selected option from dropdown, textbox is getting filled 

3 records are
DELL
LENOVO
WIPRO

Only DELL has its repective value in DB Both LENOVO and WIPRO doesn't have respective value.

Set timezone based on address field and send text message

Hi all,

I need to handle the following use case. 

User can add a new node and sets a delivery data on that node. This node will also hold the address of a particular user (home address). The system now needs to send a text message to that particular user (mobile number specified in the node) 08:00AM in the timezone of that home address given in the node on creation. 

D7 image don't show in post to facebook - 'og:image' property etc

Hi, I'm sure this is a familiar issue for many but I could not find a solution searching here.

Images of posts don't show when we post them to facebook. The facebook debugger give me a warning of:

The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

I do have the fb social plugin activated, not sure if it was supposed to solve this..but something is not working. Where should I look to solve this?

This is drupal 7

Thanks?

K

.cad, .sld, .sldasm, .igs, .sldprt viewer module

I am looking for a module that allows me to see .cad, .sld, .sldasm, .igs, .sldprt files.

Are there any module that let me to display, even rotate them in my website?

Thank you.

Strange behavior on node save, status set to 0

When trying to Edit and save a node of a specific content type having 2 paragraphs fields, it's saved as unpublished although it was published before saving.

  • If one of the paragraphs fields or both of them are Empty then the problem gone!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x